summaryrefslogtreecommitdiffstats
path: root/lib/installer.php
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2012-01-27 17:34:47 +0100
committerFrank Karlitschek <karlitschek@kde.org>2012-01-27 17:34:47 +0100
commit05f1fffddc49678768c90104e6aeaeac2419d95d (patch)
tree3e78dbdd3c4981a9f08f4755d674332c4711aff9 /lib/installer.php
parentad4e305c964bfe159f1898e72359f9ecaf910b2d (diff)
downloadnextcloud-server-05f1fffddc49678768c90104e6aeaeac2419d95d.tar.gz
nextcloud-server-05f1fffddc49678768c90104e6aeaeac2419d95d.zip
fix appstore download.
Diffstat (limited to 'lib/installer.php')
-rw-r--r--lib/installer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/installer.php b/lib/installer.php
index 9248f68e011..b2f817e702f 100644
--- a/lib/installer.php
+++ b/lib/installer.php
@@ -152,14 +152,14 @@ class OC_Installer{
}
//run appinfo/install.php
- if(!isset($data['noinstall']) or $data['noinstall']==false and is_file($basedir.'/appinfo/install.php')){
+ if((!isset($data['noinstall']) or $data['noinstall']==false) and file_exists($basedir.'/appinfo/install.php')){
include($basedir.'/appinfo/install.php');
}
//set the installed version
OC_Appconfig::setValue($info['id'],'installed_version',$info['version']);
OC_Appconfig::setValue($info['id'],'enabled','no');
- return true;
+ return $info['id'];
}
/**