[Fusionforge-commits] r7219 - trunk/gforge/common/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sat Mar 21 12:37:34 CET 2009


Author: aljeux
Date: 2009-03-21 12:37:34 +0100 (Sat, 21 Mar 2009)
New Revision: 7219

Modified:
   trunk/gforge/common/include/PluginManager.class.php
Log:
Fix to allow to reload hooks (call SetupHooks more that once)

Modified: trunk/gforge/common/include/PluginManager.class.php
===================================================================
--- trunk/gforge/common/include/PluginManager.class.php	2009-03-21 11:37:23 UTC (rev 7218)
+++ trunk/gforge/common/include/PluginManager.class.php	2009-03-21 11:37:34 UTC (rev 7219)
@@ -85,7 +85,7 @@
 	}
 
 	/**
-	 * LoadPlugin() - load a specifig plugin
+	 * LoadPlugin() - load a specific plugin
 	 *
 	 */
 	function LoadPlugin ($p_name) {
@@ -133,6 +133,7 @@
 	 *
 	 */
 	function SetupHooks () {
+		$this->hooks_to_plugins = array();
 		foreach ($this->plugins_to_hooks as $p_name => $hook_list) {
 			foreach ($hook_list as $hook_name) {
 				if (!isset ($this->hooks_to_plugins[$hook_name])) {




More information about the Fusionforge-commits mailing list