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
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-29 15:39:42 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-01-31 16:15:10 +0300
commita68895e33427483f149e55ae3d6ec30315d8ac96 (patch)
treee3807e62a9f071bfa5d8ea2aaebaeb7e696a29b9 /lib
parent6d3c8d5546ced475bb050ce8471a12539b39a225 (diff)
Remove OC_App::installApp since it is not used anymore
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/app.php57
1 files changed, 0 insertions, 57 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 6364bff36ef..e3da5f350a5 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -950,63 +950,6 @@ class OC_App {
}
/**
- * @param string $app
- * @param \OCP\IConfig $config
- * @param \OCP\IL10N $l
- * @return bool
- *
- * @throws Exception if app is not compatible with this version of ownCloud
- * @throws Exception if no app-name was specified
- */
- public function installApp($app,
- \OCP\IConfig $config,
- \OCP\IL10N $l) {
- if ($app !== false) {
- // check if the app is compatible with this version of ownCloud
- $info = self::getAppInfo($app);
- if(!is_array($info)) {
- throw new \Exception(
- $l->t('App "%s" cannot be installed because appinfo file cannot be read.',
- [$info['name']]
- )
- );
- }
-
- $version = \OCP\Util::getVersion();
- if (!self::isAppCompatible($version, $info)) {
- throw new \Exception(
- $l->t('App "%s" cannot be installed because it is not compatible with this version of the server.',
- array($info['name'])
- )
- );
- }
-
- // check for required dependencies
- self::checkAppDependencies($config, $l, $info);
-
- $config->setAppValue($app, 'enabled', 'yes');
- if (isset($appData['id'])) {
- $config->setAppValue($app, 'ocsid', $appData['id']);
- }
-
- if(isset($info['settings']) && is_array($info['settings'])) {
- $appPath = self::getAppPath($app);
- self::registerAutoloading($app, $appPath);
- }
-
- \OC_Hook::emit('OC_App', 'post_enable', array('app' => $app));
- } else {
- if(empty($appName) ) {
- throw new \Exception($l->t("No app name specified"));
- } else {
- throw new \Exception($l->t("App '%s' could not be installed!", $appName));
- }
- }
-
- return $app;
- }
-
- /**
* update the database for the app and call the update script
*
* @param string $appId