зеркало из https://github.com/nextcloud/server.git
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.
This commit is contained in:
Родитель
9717cdb42e
Коммит
8ce3aca331
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче