Move admin bar code into body_start place_holder

This commit is contained in:
slawkens
2025-07-08 14:22:51 +02:00
parent dcb96f4ce1
commit f17269e44c
2 changed files with 10 additions and 9 deletions

View File

@@ -162,15 +162,6 @@ if(setting('core.anonymous_usage_statistics')) {
}
}
/**
* @var OTS_Account $account_logged
*/
if ($logged && admin()) {
$content .= $twig->render('admin-bar.html.twig', [
'username' => USE_ACCOUNT_NAME ? $account_logged->getName() : $account_logged->getId()
]);
}
$title_full = (isset($title) ? $title . ' - ' : '') . $config['lua']['serverName'];
require $template_path . '/' . $template_index;