diff options
author | Vjacheslav Trushkin <arty@phpbb.com> | 2011-12-15 14:44:09 +0200 |
---|---|---|
committer | Vjacheslav Trushkin <arty@phpbb.com> | 2011-12-15 14:44:09 +0200 |
commit | cd4958f72c249b9254f7038432cbe7a390dd93bf (patch) | |
tree | 83eef0ac9afe4d2d18fa76e0e354de18d8b555fd | |
parent | 050fb83dfe8d952163193828553599807c7c3e6e (diff) | |
download | forums-cd4958f72c249b9254f7038432cbe7a390dd93bf.tar forums-cd4958f72c249b9254f7038432cbe7a390dd93bf.tar.gz forums-cd4958f72c249b9254f7038432cbe7a390dd93bf.tar.bz2 forums-cd4958f72c249b9254f7038432cbe7a390dd93bf.tar.xz forums-cd4958f72c249b9254f7038432cbe7a390dd93bf.zip |
[ticket/10507] Sort styles in acp
Sort styles by name in admin control panel
PHPBB3-10507
-rw-r--r-- | phpBB/includes/acp/acp_styles.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php index 3bc8c86500..38f4c57bd8 100644 --- a/phpBB/includes/acp/acp_styles.php +++ b/phpBB/includes/acp/acp_styles.php @@ -540,6 +540,7 @@ parse_css_file = {PARSE_CSS_FILE} global $user, $template, $db, $config, $phpbb_root_path, $phpEx; $sql_from = ''; + $sql_sort = 'LOWER(' . $mode . '_name)'; $style_count = array(); switch ($mode) @@ -571,6 +572,9 @@ parse_css_file = {PARSE_CSS_FILE} case 'imageset': $sql_from = STYLES_IMAGESET_TABLE; break; + + default: + trigger_error($user->lang['NO_MODE'] . adm_back_link($this->u_action), E_USER_WARNING); } $l_prefix = strtoupper($mode); @@ -594,7 +598,8 @@ parse_css_file = {PARSE_CSS_FILE} ); $sql = "SELECT * - FROM $sql_from"; + FROM $sql_from + ORDER BY $sql_sort ASC"; $result = $db->sql_query($sql); $installed = array(); |