Index: branches/5.2.x/core/units/helpers/themes_helper.php =================================================================== diff -u -N -r14698 -r14699 --- branches/5.2.x/core/units/helpers/themes_helper.php (.../themes_helper.php) (revision 14698) +++ branches/5.2.x/core/units/helpers/themes_helper.php (.../themes_helper.php) (revision 14699) @@ -1,6 +1,6 @@ themesFolder.'/'); - while (($filename = readdir($fh))) { - if (in_array($filename, $skip_filenames)) { - continue; - } + $iterator = new DirectoryIterator($this->themesFolder . '/'); + /* @var $file_info DirectoryIterator */ - if (is_dir($this->themesFolder.'/'.$filename)) { + foreach ($iterator as $file_info) { + $filename = $file_info->getFilename(); + + if ( $file_info->isDir() && !$file_info->isDot() && $filename != '.svn' && $filename != 'CVS' ) { $theme_id = $this->refreshTheme($filename); + if ($theme_id) { $themes_found[] = $theme_id; // increment serial of updated themes