regmtime was always 0; needs to be calculated before loading app cache
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Nov 2010 04:53:22 +0000 (21:53 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Nov 2010 07:01:23 +0000 (00:01 -0700)
framework/Core/lib/Horde/Registry.php

index 3a81305..b46af48 100644 (file)
@@ -345,6 +345,10 @@ class Horde_Registry
             umask($conf['umask']);
         }
 
+        /* Get modified time of registry files. */
+        $this->_regmtime = max(filemtime(HORDE_BASE . '/config/registry.php'),
+                               filemtime(HORDE_BASE . '/config/registry.d'));
+
         $vhost = null;
         if (!empty($conf['vhosts'])) {
             $vhost = HORDE_BASE . '/config/registry-' . $conf['server']['name'] . '.php';
@@ -383,9 +387,6 @@ class Horde_Registry
         /* Initialize the localization routines and variables. */
         $this->setLanguageEnvironment(null, 'horde');
 
-        $this->_regmtime = max(filemtime(HORDE_BASE . '/config/registry.php'),
-                               filemtime(HORDE_BASE . '/config/registry.d'));
-
         /* Stop system if Horde is inactive. */
         if ($this->applications['horde']['status'] == 'inactive') {
             throw new Horde_Exception(Horde_Core_Translation::t("This system is currently deactivated."));