diff --git a/ChangeLog b/ChangeLog index c35543a88..66324fda9 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ $Source$ * config.inc.php, libraries/common.lib.php, libraries/config_import.lib.php, libraries/display_export.lib.php: Configurable file name templates (RFE #1226941). + * themes.php, libraries/select_theme.lib.php: Sort themes, use only one + code for browsing directory with themes (RFE #1184251). 2005-06-24 Marc Delisle * db_operations.php: problem renaming a db diff --git a/libraries/select_theme.lib.php b/libraries/select_theme.lib.php index 3e29a3b09..8659422b7 100644 --- a/libraries/select_theme.lib.php +++ b/libraries/select_theme.lib.php @@ -77,6 +77,8 @@ if ($PMA_ThemeAvailable == TRUE) { // themeManager is available closedir($handleThemes); } // end themeManger +asort($available_themes_choices); + if (isset($set_theme)) { // if user submit a theme setcookie('pma_theme', $set_theme, time() + 60*60*24*30, $GLOBALS['cookie_path'], '', $GLOBALS['is_https']); } else { // else check if user have a theme cookie diff --git a/themes.php b/themes.php index 082d03db4..db40b5520 100644 --- a/themes.php +++ b/themes.php @@ -84,9 +84,7 @@ echo "";