Avoid globals where possible

$logged => logged()
$account_logged => accountLogged()
This commit is contained in:
slawkens
2025-03-16 12:36:22 +01:00
parent a71f41193c
commit 13b8fcf454
85 changed files with 226 additions and 192 deletions

View File

@@ -132,7 +132,7 @@ class CreateCharacter
return false;
}
global $db;
$db = app()->get('database');
if($sex == "0")
$playerSample->setLookType(136);
@@ -250,7 +250,7 @@ class CreateCharacter
return false;
}
global $twig;
$twig = app()->get('twig');
$twig->display('success.html.twig', array(
'title' => 'Character Created',
'description' => 'The character <b>' . $name . '</b> has been created.<br/>