summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-02-27 15:47:29 +0400
committerAndrew Dolgov <[email protected]>2013-02-27 15:47:29 +0400
commit0a117b86b0d5dc4b77d0f13f0fd865fe97693d59 (patch)
treec06109cd220cd0beb365885b368986871e16de0e /include/functions.php
parent88918ca637d5e5d22a687ddd70ea04675577448a (diff)
cache all db prefs on startup
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index d153f9c11..d6c73343e 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -740,6 +740,7 @@
if (SINGLE_USER_MODE) {
authenticate_user($link, "admin", null);
+ cache_prefs($link);
load_user_plugins($link, $_SESSION["uid"]);
} else {
if (!$_SESSION["uid"] || !validate_session($link)) {
@@ -764,6 +765,7 @@
}
if ($_SESSION["uid"]) {
+ cache_prefs($link);
load_user_plugins($link, $_SESSION["uid"]);
}
}