We have to call the application cache after starting the session.
authorJan Schneider <jan@horde.org>
Sat, 26 Jun 2010 13:57:25 +0000 (15:57 +0200)
committerJan Schneider <jan@horde.org>
Sat, 26 Jun 2010 13:57:25 +0000 (15:57 +0200)
framework/Core/lib/Horde/Registry.php

index 44ff998..f8c8858 100644 (file)
@@ -333,9 +333,6 @@ class Horde_Registry
             }
         }
 
-        /* Always need to load applications information. */
-        $this->_loadApplicationsCache($vhost);
-
         /* Start a session. */
         if ($session_flags & self::SESSION_NONE ||
             (PHP_SAPI == 'cli') ||
@@ -354,6 +351,9 @@ class Horde_Registry
             }
         }
 
+        /* Always need to load applications information. */
+        $this->_loadApplicationsCache($vhost);
+
         /* Initialize the localization routines and variables. We can't use
          * Horde_Nls::setLanguageEnvironment() here because that depends on the
          * registry to be already initialized. */