Skip to content
Snippets Groups Projects
Commit 9e03ea4a authored by Robin Appelman's avatar Robin Appelman
Browse files

ensure the files app is always loaded

parent 8076b1e1
No related branches found
No related tags found
No related merge requests found
...@@ -125,11 +125,13 @@ class OC_App{ ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment