[evolvis-commits] r10132: remove plugin from the plugins array if we can' t find the pluginname-init. php file which is mandatory↵ this should fix the error met when you have plugins in your db that are not correctly installed on the filesystem↵?==?UTF-8?Q?

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 17:38:23 CET 2011


Author: mirabilos
Date: 2011-02-24 17:38:23 +0100 (Thu, 24 Feb 2011)
New Revision: 10132

Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/common/include/PluginManager.class
Log:
remove plugin from the plugins array if we can't find the pluginname-init.php file which is mandatory
this should fix the error met when you have plugins in your db that are not correctly installed on the filesystem


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/include/PluginManager.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/include/PluginManager.class	2011-02-24 16:38:22 UTC (rev 10131)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/include/PluginManager.class	2011-02-24 16:38:23 UTC (rev 10132)
@@ -97,6 +97,9 @@
 			$filename = $include_path . $p_name . "/include/".$p_name."-init.php" ;
 			if (file_exists ($filename)) {
 				require_once ($filename) ;
+			} else {
+				// we can't find the plugin so we remove it from the array
+				unset($this->plugins_data[$p_id]);
 			}
 		}
 		return true ;



More information about the evolvis-commits mailing list