summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index.php1
-rw-r--r--lib/base.php1
2 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index b85c49c76c2..a3835c6d2f3 100644
--- a/index.php
+++ b/index.php
@@ -57,6 +57,7 @@ elseif(OC_User::isLoggedIn()) {
exit();
}
else {
+ OC_App::loadApps();
if(is_null(OC::$REQUESTEDFILE)){
OC::loadapp();
}else{
diff --git a/lib/base.php b/lib/base.php
index 5478f084392..fa5287631d8 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -274,7 +274,6 @@ class OC{
public static function loadapp(){
if(file_exists(OC::$APPSROOT . '/apps/' . OC::$REQUESTEDAPP)){
- OC_App::loadApps();
require_once(OC::$APPSROOT . '/apps/' . OC::$REQUESTEDAPP . '/index.php');
}else{
trigger_error('The requested App was not found.', E_USER_ERROR);