|
|
|
|
@ -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'); |
|
|
|
|
|