From 0eaf5cf30ef58a3062cf5f9f6db83ca189cd762e Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 15 Nov 2010 21:53:22 -0700 Subject: [PATCH] regmtime was always 0; needs to be calculated before loading app cache --- framework/Core/lib/Horde/Registry.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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.")); -- 2.11.0