Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: lib/Mvied/Plugin.php
- ===================================================================
- --- lib/Mvied/Plugin.php (revision 15600)
- +++ lib/Mvied/Plugin.php (working copy)
- @@ -123,7 +123,7 @@
- $modules[] = $module;
- if ( is_dir($this->getModuleDirectory() . $module) && $sub_module_directory = opendir($this->getModuleDirectory() . $module) ) {
- while ( false !== ($entry = readdir($sub_module_directory)) ) {
- - if ( $entry != '.' && $entry != '..' ) {
- + if ( strpos($entry, '.') !== 0 ) {
- $sub_module = str_replace('.php', '', $entry);
- $modules[] = $module . '\\' . $sub_module;
- }
- @@ -427,4 +427,4 @@
- return $this;
- }
- -}
- \ No newline at end of file
- +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement