mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
* semantic versioning support for plugins
* add support for defining max myaac version in plugin.json file * you can now require other plugin to be installed before yours * added German translation * fixed faq containing html code
This commit is contained in:
@@ -73,12 +73,15 @@ else if(isset($_FILES["plugin"]["name"]))
|
||||
foreach(Plugins::getWarnings() as $warning) {
|
||||
warning($warning);
|
||||
}
|
||||
|
||||
$info = Plugins::getPluginInfo();
|
||||
success((isset($info['name']) ? '<strong>' . $info['name'] . '</strong> p' : 'P') . 'lugin has been successfully installed.');
|
||||
}
|
||||
else
|
||||
error(Plugins::getError());
|
||||
|
||||
else {
|
||||
$error = Plugins::getError();
|
||||
error(!empty($error) ? $error : 'Unexpected error happened while installing plugin. Please try again later.');
|
||||
}
|
||||
|
||||
unlink($targetzip); // delete the Zipped file
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user