Framework: Make sure we have an appcache before loading the session handler
authorBen Klang <ben@alkaloid.net>
Tue, 18 May 2010 18:44:44 +0000 (14:44 -0400)
committerBen Klang <ben@alkaloid.net>
Tue, 18 May 2010 18:44:44 +0000 (14:44 -0400)
framework/Core/lib/Horde/Registry.php

index d4f6fac..6177ff3 100644 (file)
@@ -316,6 +316,9 @@ class Horde_Registry
             umask($conf['umask']);
         }
 
+        /* Always need to load applications information. */
+        $this->_loadApplicationsCache($vhost);
+
         /* Start a session. */
         if ($session_flags & self::SESSION_NONE ||
             (PHP_SAPI == 'cli') ||
@@ -354,9 +357,6 @@ class Horde_Registry
             }
         }
 
-        /* Always need to load applications information. */
-        $this->_loadApplicationsCache($vhost);
-
         /* Stop system if Horde is inactive. */
         if ($this->applications['horde']['status'] == 'inactive') {
             throw new Horde_Exception(_("This system is currently deactivated."));