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 Gallery
{
static public function add($comment, $image, $author, &$errors)
{
global $db;
$db = app()->get('database');
if(isset($comment[0]) && isset($image[0]) && isset($author[0]))
{
$query =
@@ -225,7 +225,7 @@ class Gallery
static public function move($id, $i, &$errors)
{
global $db;
$db = app()->get('database');
$query = self::get($id);
if($query !== false)
{