Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. Index: lib/Mvied/Plugin.php
  2. ===================================================================
  3. --- lib/Mvied/Plugin.php    (revision 15600)
  4. +++ lib/Mvied/Plugin.php    (working copy)
  5. @@ -123,7 +123,7 @@
  6.                         $modules[] = $module;
  7.                         if ( is_dir($this->getModuleDirectory() . $module) && $sub_module_directory = opendir($this->getModuleDirectory() . $module) ) {
  8.                             while ( false !== ($entry = readdir($sub_module_directory)) ) {
  9. -                               if ( $entry != '.' && $entry != '..' ) {
  10. +                               if ( strpos($entry, '.') !== 0 ) {
  11.                                     $sub_module = str_replace('.php', '', $entry);
  12.                                     $modules[] = $module . '\\' . $sub_module;
  13.                                 }
  14. @@ -427,4 +427,4 @@
  15.         return $this;
  16.     }
  17.  
  18. -}
  19. \ No newline at end of file
  20. +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement