Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
/**
* Removes an app
- * @param string $name name of the application to remove
+ * @param string $appId ID of the application to remove
* @return boolean
*
*
* this has to be done by the function oc_app_uninstall().
*/
public static function removeApp($appId) {
+ $installer = new Installer();
- if(Installer::isDownloaded( $appId )) {
+ if($installer->isDownloaded( $appId )) {
$appDir=OC_App::getInstallPath() . '/' . $appId;
OC_Helper::rmdirr($appDir);