mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-25 20:58:55 +00:00
[ticket/10507] Sort styles in acp
Sort styles by name in admin control panel PHPBB3-10507
This commit is contained in:
parent
050fb83dfe
commit
cd4958f72c
1 changed files with 6 additions and 1 deletions
|
@ -540,6 +540,7 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
global $user, $template, $db, $config, $phpbb_root_path, $phpEx;
|
global $user, $template, $db, $config, $phpbb_root_path, $phpEx;
|
||||||
|
|
||||||
$sql_from = '';
|
$sql_from = '';
|
||||||
|
$sql_sort = 'LOWER(' . $mode . '_name)';
|
||||||
$style_count = array();
|
$style_count = array();
|
||||||
|
|
||||||
switch ($mode)
|
switch ($mode)
|
||||||
|
@ -571,6 +572,9 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
case 'imageset':
|
case 'imageset':
|
||||||
$sql_from = STYLES_IMAGESET_TABLE;
|
$sql_from = STYLES_IMAGESET_TABLE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
trigger_error($user->lang['NO_MODE'] . adm_back_link($this->u_action), E_USER_WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
$l_prefix = strtoupper($mode);
|
$l_prefix = strtoupper($mode);
|
||||||
|
@ -594,7 +598,8 @@ parse_css_file = {PARSE_CSS_FILE}
|
||||||
);
|
);
|
||||||
|
|
||||||
$sql = "SELECT *
|
$sql = "SELECT *
|
||||||
FROM $sql_from";
|
FROM $sql_from
|
||||||
|
ORDER BY $sql_sort ASC";
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
$installed = array();
|
$installed = array();
|
||||||
|
|
Loading…
Add table
Reference in a new issue