ensure the files app is always loaded

This commit is contained in:
Robin Appelman 2012-05-03 20:47:18 +02:00
parent 8076b1e12d
commit 9e03ea4a28
1 changed files with 4 additions and 2 deletions

View File

@ -125,12 +125,14 @@ class OC_App{
* get all enabled apps
*/
public static function getEnabledApps(){
$apps=array();
$apps=array('files');
$query = OC_DB::prepare( 'SELECT appid FROM *PREFIX*appconfig WHERE configkey = \'enabled\' AND configvalue=\'yes\'' );
$result=$query->execute();
while($row=$result->fetchRow()){
if(array_search($row['appid'],$apps)===false){
$apps[]=$row['appid'];
}
}
return $apps;
}