Будь проклят тот день, когда я решил ввести неймспейсы...

This commit is contained in:
lopar
2020-10-28 22:21:08 +02:00
parent f1b9ce6a45
commit d38d62c5b5
159 changed files with 339 additions and 304 deletions
+3 -3
View File
@@ -105,7 +105,7 @@ FROM `shop` LEFT JOIN `magic` ON `magic` = `magic`.`id` WHERE `count` > 0 AND `c
$iteminfo = [];
while ($row = $shopItems->fetch_assoc()) {
$iteminfo[] = new ShopItem($row);
$iteminfo[] = new \Battles\ShopItem($row);
}
} else {
$inventoryItems = db::c()->query('SELECT `inventory`.*,
@@ -125,7 +125,7 @@ ORDER BY `update` DESC', null, $_SESSION['uid']);
$iteminfo = [];
while ($row = $inventoryItems->fetch_assoc()) {
$iteminfo[] = new ShopItem($row);
$iteminfo[] = new \Battles\ShopItem($row);
}
}
@@ -248,7 +248,7 @@ if (!empty($_GET['buy'])) {
$status = "Недостаточно денег или нет вещей в наличии.";
}
}
Template::header('Магазин');
\Battles\Template::header('Магазин');
?>
<script src="js/main.js"></script>
<h1>Государственный магазин</h1>