Sfoglia il codice sorgente

WIP - do not update yet!
remove plugin work

causefx 7 anni fa
parent
commit
65c97c8e39
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      api/functions/plugin-functions.php

+ 3 - 3
api/functions/plugin-functions.php

@@ -50,10 +50,10 @@ function removePlugin($plugin)
 			'to' => str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $GLOBALS['root'] . $v['path'] . $v['fileName']),
 			'path' => str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, $GLOBALS['root'] . $v['path'])
 		);
-		/*if (!rrmdir($file['to'])) {
+		if (!rrmdir($file['to'])) {
 			writeLog('error', 'Plugin Function -  Remove File Failed  for: ' . $v['githubPath'], $GLOBALS['organizrUser']['username']);
 			return false;
-		}*/
+		}
 	}
 	if ($GLOBALS['installedPlugins'] !== '') {
 		$installedPlugins = explode('|', $GLOBALS['installedPlugins']);
@@ -76,6 +76,6 @@ function removePlugin($plugin)
 	} else {
 		$installedPluginsNew = '';
 	}
-	//updateConfig(array('installedPlugins' => $installedPluginsNew));
+	updateConfig(array('installedPlugins' => $installedPluginsNew));
 	return true;
 }