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:41:00 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-01-31 16:15:12 +0300
commitefbdad2d0c5ee26fafe48cafb4bf4703b23ea1fd (patch)
tree97bcb0465886f975f356dfc8623deb79d77f9549 /lib
parenta68895e33427483f149e55ae3d6ec30315d8ac96 (diff)
Remove OC_App::removeApp
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Installer.php3
-rw-r--r--lib/private/legacy/app.php13
2 files changed, 3 insertions, 13 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php
index 6a78ea329cc..ad2dcb60f20 100644
--- a/lib/private/Installer.php
+++ b/lib/private/Installer.php
@@ -471,6 +471,9 @@ class Installer {
*/
public function removeApp($appId) {
if($this->isDownloaded( $appId )) {
+ if (\OC::$server->getAppManager()->isShipped($appId)) {
+ return false;
+ }
$appDir = OC_App::getInstallPath() . '/' . $appId;
OC_Helper::rmdirr($appDir);
return true;
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index e3da5f350a5..b19d63f560e 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -420,19 +420,6 @@ class OC_App {
}
/**
- * @param string $app
- * @return bool
- */
- public static function removeApp($app) {
- if (\OC::$server->getAppManager()->isShipped($app)) {
- return false;
- }
-
- $installer = \OC::$server->query(Installer::class);
- return $installer->removeApp($app);
- }
-
- /**
* This function set an app as disabled in appconfig.
*
* @param string $app app