diff options
author | Brice Maron <brice@bmaron.net> | 2012-06-14 21:00:02 +0000 |
---|---|---|
committer | Brice Maron <brice@bmaron.net> | 2012-06-14 21:00:02 +0000 |
commit | 6da5a2fdd4e8a19ab993b4a1f7de7e45b8922a16 (patch) | |
tree | d98a0cf88baf7a1b2f5329090a60b575dcdf3e83 /lib/installer.php | |
parent | dd98afc56c4356a06fb5afef39da916a97bae90b (diff) | |
download | nextcloud-server-6da5a2fdd4e8a19ab993b4a1f7de7e45b8922a16.tar.gz nextcloud-server-6da5a2fdd4e8a19ab993b4a1f7de7e45b8922a16.zip |
Add possibility to choose the installation folder
Diffstat (limited to 'lib/installer.php')
-rw-r--r-- | lib/installer.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/installer.php b/lib/installer.php index bfa34de2a7d..299674b29e4 100644 --- a/lib/installer.php +++ b/lib/installer.php @@ -126,8 +126,6 @@ class OC_Installer{ return false; } $info=OC_App::getAppInfo($extractDir.'/appinfo/info.xml',true); - $basedir=OC_App::getAppPath($info['id']); - // check the code for not allowed calls if(!OC_Installer::checkCode($info['id'],$extractDir)){ OC_Log::write('core','App can\'t be installed because of not allowed code in the App',OC_Log::ERROR); @@ -153,6 +151,7 @@ class OC_Installer{ return false; } + $basedir=OC_App::getInstallPath().'/'.$info['id']; //check if the destination directory already exists if(is_dir($basedir)){ OC_Log::write('core','App directory already exists',OC_Log::WARN); |