From efbdad2d0c5ee26fafe48cafb4bf4703b23ea1fd Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Mon, 29 Jan 2018 13:41:00 +0100 Subject: Remove OC_App::removeApp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/ajax/uninstallapp.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'settings/ajax') 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'); -- cgit v1.2.3