diff options
author | Georg Ehrke <developer@georgehrke.com> | 2014-05-31 14:55:00 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2014-05-31 14:55:00 +0200 |
commit | c8636ca4d9528faf42b1cd877bb73e56d26244cf (patch) | |
tree | b65bc6f1d6af00e15e97eb2cc518eeda2a9896e3 /lib/private/installer.php | |
parent | 2bcfd8e084b27ed89cf6e62bc9ab2c681d5a8361 (diff) | |
parent | cff9440a37a64a43403b7dd57a99a203410e426a (diff) | |
download | nextcloud-server-c8636ca4d9528faf42b1cd877bb73e56d26244cf.tar.gz nextcloud-server-c8636ca4d9528faf42b1cd877bb73e56d26244cf.zip |
Merge branch 'master' into update_shipped_apps_from_appstore
Conflicts:
lib/private/app.php
lib/private/installer.php
Diffstat (limited to 'lib/private/installer.php')
-rw-r--r-- | lib/private/installer.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php index e8ea162eb2f..6940a1dc78d 100644 --- a/lib/private/installer.php +++ b/lib/private/installer.php @@ -56,7 +56,7 @@ class OC_Installer{ * It is the task of oc_app_install to create the tables and do whatever is * needed to get the app working. * - * @brief Installs an app + * Installs an app * @param array $data with all information * @throws \Exception * @return integer @@ -303,10 +303,7 @@ class OC_Installer{ } // check if the app is compatible with this version of ownCloud - if( - !isset($info['require']) - or !OC_App::isAppVersionCompatible(OC_Util::getVersion(), $info['require']) - ) { + if(!OC_App::isAppCompatible(OC_Util::getVersion(), $info)) { OC_Helper::rmdirr($extractDir); throw new \Exception($l->t("App can't be installed because it is not compatible with this version of ownCloud")); } @@ -362,7 +359,7 @@ class OC_Installer{ } /** - * @brief Check if app is already downloaded + * Check if app is already downloaded * @param string $name name of the application to remove * @return boolean * @@ -378,9 +375,9 @@ class OC_Installer{ } /** - * @brief Removes an app + * Removes an app * @param string $name name of the application to remove - * @param $options array with options + * @param array $options options * @return boolean|null * * This function removes an app. $options is an associative array. The @@ -431,7 +428,7 @@ class OC_Installer{ } /** - * @brief Installs shipped apps + * Installs shipped apps * * This function installs all apps found in the 'apps' directory that should be enabled by default; */ |