Changeset 609 for trunk

Show
Ignore:
Timestamp:
09/09/07 23:32:31 (15 months ago)
Author:
michiel
Message:

ignore directories in the plugins/ dir while loading plugins.
This will allow plugins to bring support files in a directory.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/plugins.php

    r386 r609  
    5858                while (false !== ($file = readdir($handle))) { 
    5959                        if (strpos($file, ".") === 0) continue; // dont process . .. or hidden files/dirs 
     60                        if (is_dir($this->plugindir.$file)) continue; // dont process directories 
    6061                        /* get the filename */ 
    6162                        /* all files should be: pluginname.php */