From: Michael M Slusarz Date: Sun, 11 Apr 2010 01:37:21 +0000 (-0600) Subject: Need to push app on stack earlier to prevent loop X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4e3770e039e297e3483ed6a9e97f2e104a989a88;p=horde.git Need to push app on stack earlier to prevent loop --- diff --git a/framework/Core/lib/Horde/Registry.php b/framework/Core/lib/Horde/Registry.php index 6efa5b72b..10c7f9412 100644 --- a/framework/Core/lib/Horde/Registry.php +++ b/framework/Core/lib/Horde/Registry.php @@ -1073,6 +1073,9 @@ class Horde_Registry throw new Horde_Exception(sprintf(_('%s is not authorized for %s.'), Horde_Auth::getAuth() ? 'User ' . Horde_Auth::getAuth() : 'Guest user', $this->applications[$app]['name']), self::PERMISSION_DENIED); } + /* Push application on the stack. */ + $this->_appStack[] = $app; + /* Set up autoload paths for the current application. This needs to * be done here because it is possible to try to load app-specific * libraries from other applications. */ @@ -1104,10 +1107,6 @@ class Horde_Registry } } - /* Once we know everything succeeded and is in a consistent state - * again, push the new application onto the stack. */ - $this->_appStack[] = $app; - /* Call post-push hook. */ try { Horde::callHook('pushapp', array(), $app);