diff --git a/TODO b/TODO index 76111ab9..6d842c2a 100644 --- a/TODO +++ b/TODO @@ -27,6 +27,7 @@ * remove tibiacom template, and include it as a plugin 2.0 + * remove gesior backward support * remove compat functions * remove $template['link_*'] * folder restructure: diff --git a/index.php b/index.php index 3854c227..a8a9c832 100644 --- a/index.php +++ b/index.php @@ -423,18 +423,18 @@ else die('ERROR: Cannot load template.'); } -$super = superAdmin(); echo '' . "\n"; -if($super) { +if(superAdmin()) { echo ''; echo PHP_EOL . ''; if(function_exists('memory_get_peak_usage')) { echo PHP_EOL . ''; } + + if($config['database_log']) { + echo PHP_EOL . ''; + } } -if($config['database_log'] && $super) { - echo PHP_EOL . ''; -} $hooks->trigger(HOOK_FINISH); ?> diff --git a/system/libs/pot/OTS_Group.php b/system/libs/pot/OTS_Group.php index a7c3bbe1..d0c9a87e 100644 --- a/system/libs/pot/OTS_Group.php +++ b/system/libs/pot/OTS_Group.php @@ -490,7 +490,8 @@ class OTS_Group extends OTS_Row_DAO implements IteratorAggregate, Countable // creates filter $filter = new OTS_SQLFilter(); $filter->compareField('group_id', (int) $this->data['id']); - if($this->db->hasColumn('players', 'deletion')) + global $db; + if($db->hasColumn('players', 'deletion')) $filter->compareField('deletion', 0); else $filter->compareField('deleted', 0); diff --git a/system/pages/admin/players.php b/system/pages/admin/players.php index 6d5d875e..75544c7e 100644 --- a/system/pages/admin/players.php +++ b/system/pages/admin/players.php @@ -399,7 +399,7 @@ $account = $player->getAccount(); Head: Legs: Type: - hasColumn('lookaddons', 'players')): ?> + hasColumn('players', 'lookaddons')): ?> Addons: @@ -520,7 +520,7 @@ $account = $player->getAccount();
- | getCustomField($db->hasColumn('deletion', 'players') ? 'deletion' : 'deleted') == '1' ? ' checked' : ''); ?>/> | +getCustomField($db->hasColumn('players', 'deletion') ? 'deletion' : 'deleted') == '1' ? ' checked' : ''); ?>/> | isHidden() ? ' checked' : ''); ?>/> | diff --git a/system/pages/forum/show_thread.php b/system/pages/forum/show_thread.php index 119438e2..462dfa09 100644 --- a/system/pages/forum/show_thread.php +++ b/system/pages/forum/show_thread.php @@ -38,7 +38,7 @@ if(isset($posts[0]['player_id'])) { $db->query("UPDATE `" . TABLE_PREFIX . "forum` SET `views`=`views`+1 WHERE `id` = ".(int) $thread_id); } -$lookaddons = $db-hasColumn('players', 'lookaddons'); +$lookaddons = $db->hasColumn('players', 'lookaddons'); $groups = new OTS_Groups_List(); foreach($posts as &$post) { diff --git a/system/templates/account.management.html.twig b/system/templates/account.management.html.twig index d4c44816..bc47fa97 100644 --- a/system/templates/account.management.html.twig +++ b/system/templates/account.management.html.twig @@ -58,7 +58,8 @@Email Address: | {{ account_email ~ email_change }} |