Sort themes, use only one code for browsing directory with themes (RFE #1184251).

This commit is contained in:
Michal Čihař
2005-06-24 12:35:22 +00:00
parent c6f540be72
commit 6c8ec18ba9
3 changed files with 5 additions and 6 deletions

View File

@@ -84,9 +84,7 @@ echo "<?xml version=\"1.0\" encoding=\"" . $GLOBALS['charset'] . "\"?".">";
<td><img src="<?php echo $GLOBALS['pmaThemeImage'] . 'spacer.png'; ?>" width="1" height="1" border="0" alt="" /></td>
</tr>
<?php
if ($handleThemes = opendir($path_to_themes)) { // open themes
while (false !== ($PMA_Theme = readdir($handleThemes))) { // get screens
if ($PMA_Theme != "." && $PMA_Theme != "..") {
foreach ($available_themes_choices AS $PMA_Theme) {
$screen_directory = $path_to_themes . $PMA_Theme;
// check for theme requires/name
@@ -142,9 +140,6 @@ if ($handleThemes = opendir($path_to_themes)) { // open themes
</tr>
<?php
} // end 'screen output'
} // end 'check theme'
} // end 'get screens'
closedir($handleThemes);
} // end 'open themes'
?>
</table>