summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-29 13:41:00 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-01-31 14:15:12 +0100
commitefbdad2d0c5ee26fafe48cafb4bf4703b23ea1fd (patch)
tree97bcb0465886f975f356dfc8623deb79d77f9549 /settings/ajax
parenta68895e33427483f149e55ae3d6ec30315d8ac96 (diff)
downloadnextcloud-server-efbdad2d0c5ee26fafe48cafb4bf4703b23ea1fd.tar.gz
nextcloud-server-efbdad2d0c5ee26fafe48cafb4bf4703b23ea1fd.zip
Remove OC_App::removeApp
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/uninstallapp.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/settings/ajax/uninstallapp.php b/settings/ajax/uninstallapp.php
index a932e2d79e9..63107905b02 100644
--- a/settings/ajax/uninstallapp.php
+++ b/settings/ajax/uninstallapp.php
@@ -40,7 +40,10 @@ if (!array_key_exists('appid', $_POST)) {
$appId = (string)$_POST['appid'];
$appId = OC_App::cleanAppId($appId);
-$result = OC_App::removeApp($appId);
+// FIXME: move to controller
+/** @var \OC\Installer $installer */
+$installer = \OC::$server->query(\OC\Installer::class);
+$result = $installer->removeApp($app);
if($result !== false) {
// FIXME: Clear the cache - move that into some sane helper method
\OC::$server->getMemCacheFactory()->createDistributed('settings')->remove('listApps-0');