#49: Удаление здания комиссионки.
This commit is contained in:
@@ -10,11 +10,15 @@ use Battles\User;
|
||||
require_once 'functions.php';
|
||||
Shop::$current = new Shop(Shop::GENERAL_SHOP);
|
||||
if (!empty($_GET['otdel'])) {
|
||||
if ($_GET['otdel'] !== 'sale') {
|
||||
Shop::$current->categoryType = $_GET['otdel'];
|
||||
} else {
|
||||
if ($_GET['otdel'] === 'sale') {
|
||||
Shop::$current->categoryType = Shop::CATEGORY_SALE_ITEMS;
|
||||
}
|
||||
elseif ($_GET['otdel'] === 'market') {
|
||||
Shop::$current->categoryType = Shop::BARTER_SHOP;
|
||||
}
|
||||
else {
|
||||
Shop::$current->categoryType = $_GET['otdel'];
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($_POST['sellshop'])) {
|
||||
|
||||
Reference in New Issue
Block a user