fix session support for single user mode

This commit is contained in:
Andrew Dolgov 2013-03-28 09:13:30 +04:00
parent 60ed4c9ad5
commit 25db6c5191
1 changed files with 1 additions and 0 deletions

View File

@ -754,6 +754,7 @@
$_SESSION["prefs_cache"] = false;
if (SINGLE_USER_MODE) {
@session_start();
authenticate_user($link, "admin", null);
cache_prefs($link);
load_user_plugins($link, $_SESSION["uid"]);