[evolvis-commits] r11936: Display only dir as plugin↵
mirabilos at evolvis.org
mirabilos at evolvis.org
Thu Feb 24 18:29:31 CET 2011
Author: mirabilos
Date: 2011-02-24 18:29:31 +0100 (Thu, 24 Feb 2011)
New Revision: 11936
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge/www/admin/pluginman.php
Log:
Display only dir as plugin
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/www/admin/pluginman.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/admin/pluginman.php 2011-02-24 17:29:29 UTC (rev 11935)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/admin/pluginman.php 2011-02-24 17:29:31 UTC (rev 11936)
@@ -163,7 +163,7 @@
while ($filename = readdir($handle)) {
//Don't add special directories '..' or '.' to the list
$status=0;
- if (($filename!='..') && ($filename!='.') && ($filename!="CVS") ) {
+ if (($filename!='..') && ($filename!='.') && ($filename!="CVS") && is_dir($sys_plugins_path.'/'.$filename)) {
//check if the plugin is in the plugins table
$sql = "SELECT plugin_name FROM plugins WHERE plugin_name = '$filename'"; // see if the plugin is there
$res = db_query($sql);
More information about the evolvis-commits
mailing list