1
0

Don't show stackable-error on plugin upgrade (#45)

This commit is contained in:
onli
2014-06-09 21:42:17 +02:00
parent faae572342
commit 48f820cc33

View File

@ -344,6 +344,8 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) {
// we now have to check that the plugin is not already installed, or stackable, to prevent invalid double instances
$new_plugin = true;
if ($fetchplugin_data['install']) {
// spartacus will set this to false on upgrade, and we want to check this only on install
foreach (serendipity_plugin_api::get_installed_plugins() as $pluginName) {
if ($serendipity['GET']['install_plugin'] === $pluginName) {
$existingPlugin =& serendipity_plugin_api::load_plugin($serendipity['GET']['install_plugin']);
@ -357,6 +359,7 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) {
break;
}
}
}
$data['new_plugin_failed'] = ! $new_plugin;