[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/common/include PluginManager.class, 1.11, 1.12
From: |
gsmet |
Subject: |
[Gforge-commits] gforge/common/include PluginManager.class, 1.11, 1.12 |
Date: |
Wed, 27 Oct 2004 16:40:20 -0500 |
Update of /cvsroot/gforge/gforge/common/include
In directory db.perdue.net:/tmp/cvs-serv30316/common/include
Modified Files:
PluginManager.class
Log Message:
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
Index: PluginManager.class
===================================================================
RCS file: /cvsroot/gforge/gforge/common/include/PluginManager.class,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- PluginManager.class 16 May 2004 16:54:59 -0000 1.11
+++ PluginManager.class 27 Oct 2004 21:40:17 -0000 1.12
@@ -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 ;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/common/include PluginManager.class, 1.11, 1.12,
gsmet <=