From 74568df4ff7b7788991636f6fb2ed62012f85c3b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Sep 2020 09:04:33 +0300 Subject: remove a lot of stuff from global context (functions.php), add a few helper classes instead --- backend.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 8cdeafdb7..9e6751af1 100644 --- a/backend.php +++ b/backend.php @@ -41,7 +41,7 @@ } if (SINGLE_USER_MODE) { - authenticate_user( "admin", null); + UserHelper::authenticate( "admin", null); } if ($_SESSION["uid"]) { @@ -50,7 +50,7 @@ print error_json(6); return; } - load_user_plugins( $_SESSION["uid"]); + UserHelper::load_user_plugins($_SESSION["uid"]); } $purge_intervals = array( -- cgit v1.2.3-54-g00ecf