Browser object needs to be created after config array is loaded - or else the logger...
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 15 Nov 2010 21:07:17 +0000 (14:07 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 15 Nov 2010 23:41:24 +0000 (16:41 -0700)
framework/Core/lib/Horde/Core/Browser.php
framework/Core/lib/Horde/Registry.php

index e933855..edb657e 100644 (file)
@@ -78,4 +78,5 @@ class Horde_Core_Browser extends Horde_Browser
             ? $GLOBALS['session']->get('horde', 'ie_version')
             : null;
     }
+
 }
index 4d9c58e..1f172e8 100644 (file)
@@ -318,9 +318,6 @@ class Horde_Registry
             $GLOBALS['__autoloader']->addCallback($key, array($val, 'callback'));
         }
 
-        /* Initialize browser object. */
-        $GLOBALS['browser'] = $injector->getInstance('Horde_Browser');
-
         /* Import and global Horde's configuration values. Almost a chicken
          * and egg issue - since loadConfiguration() uses registry in certain
          * instances. However, if HORDE_BASE is defined, and app is
@@ -329,6 +326,9 @@ class Horde_Registry
         $this->_cache['conf-horde'] = Horde::loadConfiguration('conf.php', 'conf', 'horde');
         $conf = $GLOBALS['conf'] = &$this->_cache['conf-horde'];
 
+        /* Initialize browser object. */
+        $GLOBALS['browser'] = $injector->getInstance('Horde_Browser');
+
         /* Initial Horde-wide settings. */
 
         /* Set the maximum execution time in accordance with the config