[Fusionforge-commits] FusionForge branch Branch_5_3 updated. de6f2200f227ac38ecdc1823cc33ea03d7656daf
Franck VILLAUME
nerville at fusionforge.org
Tue Feb 11 11:51:12 CET 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, Branch_5_3 has been updated
via de6f2200f227ac38ecdc1823cc33ea03d7656daf (commit)
from 11bf1c0db546f9707b1c082c3048404b8dfe418d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit de6f2200f227ac38ecdc1823cc33ea03d7656daf
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date: Tue Feb 11 11:20:17 2014 +0100
pluginman: deactivate plugin when activation went wrong
diff --git a/src/www/admin/pluginman.php b/src/www/admin/pluginman.php
index b326c2c..7f15b3b 100644
--- a/src/www/admin/pluginman.php
+++ b/src/www/admin/pluginman.php
@@ -108,6 +108,8 @@ if (getStringFromRequest('update')) {
$plugin = $pm->GetPluginObject($pluginname);
if (!$plugin || $plugin->isError()) {
+ // we need to deactivate the plugin, something went wrong
+ $pm->deactivate($pluginname);
exit_error(_("Could not get plugin object"), 'admin');
} else {
if (method_exists($plugin, 'install')) {
-----------------------------------------------------------------------
Summary of changes:
src/www/admin/pluginman.php | 2 ++
1 file changed, 2 insertions(+)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list