summaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-22 14:17:38 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-22 14:17:38 +0200
commitaf3080402b06e86213c19e99c904b650d074f041 (patch)
treec387ff4468ced4d462ce15c7effd6550f9e31cd0 /lib/app.php
parentc9a11d0aab4d10f6dfe79d080a8851ee6d86e219 (diff)
downloadnextcloud-server-af3080402b06e86213c19e99c904b650d074f041.tar.gz
nextcloud-server-af3080402b06e86213c19e99c904b650d074f041.zip
fix installing shipped apps
Diffstat (limited to 'lib/app.php')
-rw-r--r--lib/app.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php
index e9f97a4354e..2bbc160b26b 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -95,6 +95,9 @@ class OC_App{
* This function set an app as enabled in appconfig.
*/
public static function enable( $app ){
+ if(!OC_Installer::isInstalled($app)){
+ OC_Installer::installShippedApp($app);
+ }
OC_Appconfig::setValue( $app, 'enabled', 'yes' );
}
@@ -202,7 +205,6 @@ class OC_App{
$admin=array(
array( "id" => "core_users", "order" => 2, "href" => OC_Helper::linkTo( "settings", "users.php" ), "name" => $l->t("Users"), "icon" => OC_Helper::imagePath( "settings", "users.svg" )),
array( "id" => "core_apps", "order" => 3, "href" => OC_Helper::linkTo( "settings", "apps.php?installed" ), "name" => $l->t("Apps"), "icon" => OC_Helper::imagePath( "settings", "apps.svg" )),
-// array( "id" => "files_administration", "order" => 3, "href" => OC_Helper::linkTo( "files", "admin.php" ), "name" => $l->t("Files"), "icon" => OC_Helper::imagePath( "settings", "options.svg" )),
);
$settings=array(
array( "id" => "help", "order" => 1000, "href" => OC_Helper::linkTo( "settings", "help.php" ), "name" => $l->t("Help"), "icon" => OC_Helper::imagePath( "settings", "help.svg" )),