diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-11-30 12:47:40 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-11-30 12:47:44 +0100 |
commit | 8ce3aca3315f9fc9db8e6210fa4e894c5d1d3577 (patch) | |
tree | d676794c5caba2459c89132964cd4d487a3e48dd /lib | |
parent | 9717cdb42e956f5c6f923b402cc806b523a160bd (diff) | |
download | nextcloud-server-8ce3aca3315f9fc9db8e6210fa4e894c5d1d3577.tar.gz nextcloud-server-8ce3aca3315f9fc9db8e6210fa4e894c5d1d3577.zip |
Move loading of all the apps to setting the active navigation entry.
We can't do the loading before matching the route, because some routes
need to do the loading after matching of the route. For example the
navigation detection of the app settings page.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/app.php | 2 | ||||
-rw-r--r-- | lib/base.php | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php index 79c1d83314f..5d4fbbd9c23 100755 --- a/lib/app.php +++ b/lib/app.php @@ -253,6 +253,8 @@ class OC_App{ * highlighting the current position of the user. */ public static function setActiveNavigationEntry( $id ) { + // load all the apps, to make sure we have all the navigation entries + self::loadApps(); self::$activeapp = $id; return true; } diff --git a/lib/base.php b/lib/base.php index dff73ef1ae8..f600800b617 100644 --- a/lib/base.php +++ b/lib/base.php @@ -512,7 +512,6 @@ class OC{ return; } try { - OC_App::loadApps(); OC::getRouter()->match(OC_Request::getPathInfo()); return; } catch (Symfony\Component\Routing\Exception\ResourceNotFoundException $e) { |