ensure the files app is always loaded
This commit is contained in:
parent
8076b1e12d
commit
9e03ea4a28
|
@ -125,12 +125,14 @@ 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()){
|
||||||
|
if(array_search($row['appid'],$apps)===false){
|
||||||
$apps[]=$row['appid'];
|
$apps[]=$row['appid'];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $apps;
|
return $apps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue