[Fusionforge-commits] FusionForge branch master updated. 4e6ecd4bb7b10cb70a9f8ec83547fef57dc95dca
Franck VILLAUME
nerville at fusionforge.org
Tue Feb 11 11:21:51 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, master has been updated
via 4e6ecd4bb7b10cb70a9f8ec83547fef57dc95dca (commit)
from 3eb3bb9966c7976f2d928f65fa0bffebf9138054 (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 4e6ecd4bb7b10cb70a9f8ec83547fef57dc95dca
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 b204a65..636ab2d 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