diff --git a/lib/base.php b/lib/base.php index 5b88bd899e..4fa38286be 100644 --- a/lib/base.php +++ b/lib/base.php @@ -88,6 +88,12 @@ if( !OC_Config::getValue( "installed", false )){ $_SESSION['user_id'] = ''; } +// Load Apps +// This includes plugins for users and filesystems as well +if(!$error and !$RUNTIME_NOAPPS ){ + OC_App::loadApps(); +} + OC_User::useBackend( OC_Config::getValue( "userbackend", "database" )); OC_Group::setBackend( OC_Config::getValue( "groupbackend", "database" )); @@ -106,10 +112,6 @@ OC_Util::addScript( "js" ); OC_Util::addStyle( "jquery-ui-1.8.14.custom" ); OC_Util::addStyle( "styles" ); -// Load Apps -if(!$error and !$RUNTIME_NOAPPS ){ - OC_App::loadApps(); -} // FROM Connect.php function OC_CONNECT_TEST($path,$user,$password){