From: Frank Karlitschek Date: Mon, 30 Apr 2012 11:58:48 +0000 (+0200) Subject: load the files app in a way that doesn´t break oC3 configurations X-Git-Tag: v4.0.0beta~139 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=04c6582af1aa8b6593afa5e302fadac52646699f;p=nextcloud-server.git load the files app in a way that doesn´t break oC3 configurations --- diff --git a/lib/app.php b/lib/app.php index ed7bd6ff3f9..034403d1d5a 100644 --- a/lib/app.php +++ b/lib/app.php @@ -55,7 +55,7 @@ class OC_App{ } // Our very own core apps are hardcoded - foreach( array( 'settings') as $app ){ + foreach( array( 'files', 'settings') as $app ){ if(is_null($types)){ require( $app.'/appinfo/app.php' ); } @@ -64,7 +64,7 @@ class OC_App{ // The rest comes here $apps = self::getEnabledApps(); foreach( $apps as $app ){ - if(is_null($types) or self::isType($app,$types)){ + if((is_null($types) or self::isType($app,$types)) and $app<>'files'){ if(is_file(OC::$APPSROOT.'/apps/'.$app.'/appinfo/app.php')){ require( $app.'/appinfo/app.php' ); }