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