From fd661b4860e5b7a7ba5ea03204484400ea06acf5 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 27 Jun 2007 20:48:40 +0200 Subject: update plugin component file search to ignore hidden files (files beginning with '.') darcs-hash:20070627184840-d26fc-4460e02bd480470a5cdbd2b826e12fb4e4bcc4bc.gz --- inc/pluginutils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/pluginutils.php') diff --git a/inc/pluginutils.php b/inc/pluginutils.php index 5898e550e..55c03f4a5 100644 --- a/inc/pluginutils.php +++ b/inc/pluginutils.php @@ -39,7 +39,7 @@ function plugin_list($type='',$all=false){ } else { if ($dp = @opendir(DOKU_PLUGIN."$plugin/$type/")) { while (false !== ($component = readdir($dp))) { - if ($component == '.' || $component == '..' || strtolower(substr($component, -4)) != ".php") continue; + if (substr($component,0,1) == '.' || strtolower(substr($component, -4)) != ".php") continue; if (is_file(DOKU_PLUGIN."$plugin/$type/$component")) { $plugins[] = $plugin.'_'.substr($component, 0, -4); } -- cgit v1.2.3