mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-11 03:20:46 +01:00
Avoid globals where possible
$logged => logged() $account_logged => accountLogged()
This commit is contained in:
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user