Compare commits

...

1 Commits

Author SHA1 Message Date
Julius Härtl 5e8f9f44a9
Remove some unneeded loadApp calls
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-07-01 11:08:09 +02:00
2 changed files with 4 additions and 6 deletions

View File

@ -637,7 +637,7 @@ class OC {
}
\OC::$server->getEventLogger()->start('init_session', 'Initialize session');
OC_App::loadApps(array('session'));
OC_App::loadApps(['session']);
if (!self::$CLI) {
self::initSession();
}
@ -967,10 +967,6 @@ class OC {
if (!self::$CLI) {
try {
if (!((bool) $systemConfig->getValue('maintenance', false)) && !\OCP\Util::needUpgrade()) {
OC_App::loadApps(array('filesystem', 'logging'));
OC_App::loadApps();
}
OC_Util::setupFS();
OC::$server->getRouter()->match(\OC::$server->getRequest()->getRawPathInfo());
return;
@ -993,7 +989,6 @@ class OC {
// Someone is logged in
if (\OC::$server->getUserSession()->isLoggedIn()) {
OC_App::loadApps();
OC_User::setupBackends();
OC_Util::setupFS();
// FIXME

View File

@ -140,6 +140,9 @@ class OC_App {
* @throws Exception
*/
public static function loadApp(string $app) {
if (self::isAppLoaded($app)) {
return;
}
self::$loadedApps[] = $app;
$appPath = self::getAppPath($app);
if($appPath === false) {