Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2014-05-31 16:55:00 +0400
committerGeorg Ehrke <developer@georgehrke.com>2014-05-31 16:55:00 +0400
commitc8636ca4d9528faf42b1cd877bb73e56d26244cf (patch)
treeb65bc6f1d6af00e15e97eb2cc518eeda2a9896e3 /lib/private/installer.php
parent2bcfd8e084b27ed89cf6e62bc9ab2c681d5a8361 (diff)
parentcff9440a37a64a43403b7dd57a99a203410e426a (diff)
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.php15
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;
*/