mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-12 15:54:29 +02:00
* fixed warning when trying to uninstall plugin that can't be uninstalled
This commit is contained in:
parent
f9e6966687
commit
cfb460c137
@ -45,11 +45,15 @@ if(isset($_REQUEST['uninstall'])){
|
||||
if(!file_exists($filename)) {
|
||||
error('Plugin ' . $uninstall . ' does not exist.');
|
||||
}
|
||||
else {
|
||||
if(!isset($plugin_info['uninstall'])) {
|
||||
error("Plugin doesn't have uninstall options defined. Skipping...");
|
||||
}
|
||||
else {
|
||||
$string = file_get_contents($filename);
|
||||
$plugin_info = json_decode($string, true);
|
||||
if($plugin_info == false) {
|
||||
warning('Cannot load plugin info ' . $uninstall . '.json');
|
||||
error('Cannot load plugin info ' . $uninstall . '.json');
|
||||
}
|
||||
else {
|
||||
$success = true;
|
||||
@ -71,6 +75,7 @@ if(isset($_REQUEST['uninstall'])){
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(isset($_FILES["plugin"]["name"]))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user