]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make non-static
authorLukas Reschke <lukas@statuscode.ch>
Thu, 27 Oct 2016 18:18:54 +0000 (20:18 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 31 Oct 2016 16:17:45 +0000 (17:17 +0100)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
lib/private/Installer.php

index 02dbd670a0a30b1a9f35bc50b287b6723fc70830..ab97859d62a1ca87b1ed03e5fc348a6e16a83516 100644 (file)
@@ -543,7 +543,7 @@ class Installer {
 
        /**
         * Removes an app
-        * @param string $name name of the application to remove
+        * @param string $appId ID of the application to remove
         * @return boolean
         *
         *
@@ -555,8 +555,9 @@ class Installer {
         * 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);