diff options
author | Chris Smith <chris@jalakai.co.uk> | 2007-06-27 20:48:40 +0200 |
---|---|---|
committer | Chris Smith <chris@jalakai.co.uk> | 2007-06-27 20:48:40 +0200 |
commit | fd661b4860e5b7a7ba5ea03204484400ea06acf5 (patch) | |
tree | 523609f1dc241d49f27bce5c2ef239dbede5fa71 | |
parent | 591d30adeabc0280cfffb8768d0940e43db759ea (diff) | |
download | rpg-fd661b4860e5b7a7ba5ea03204484400ea06acf5.tar.gz rpg-fd661b4860e5b7a7ba5ea03204484400ea06acf5.tar.bz2 |
update plugin component file search to ignore hidden files (files beginning with '.')
darcs-hash:20070627184840-d26fc-4460e02bd480470a5cdbd2b826e12fb4e4bcc4bc.gz
-rw-r--r-- | inc/pluginutils.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |