From: Michael M Slusarz Date: Tue, 16 Nov 2010 04:53:22 +0000 (-0700) Subject: regmtime was always 0; needs to be calculated before loading app cache X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0eaf5cf30ef58a3062cf5f9f6db83ca189cd762e;p=horde.git regmtime was always 0; needs to be calculated before loading app cache --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 3a8130569..b46af48f0 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -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."));