From 3585dbd42c114a63d585e68e14f52f2a2918632a Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 14 Jul 2007 15:44:10 +0000 Subject: a bunch of fixes git-svn-id: file:///svn/phpbb/trunk@7884 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acp/acp_ranks.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/acp/acp_ranks.php') diff --git a/phpBB/includes/acp/acp_ranks.php b/phpBB/includes/acp/acp_ranks.php index e0f6aa9a0b..08270a7221 100644 --- a/phpBB/includes/acp/acp_ranks.php +++ b/phpBB/includes/acp/acp_ranks.php @@ -143,11 +143,12 @@ class acp_ranks $db->sql_freeresult($result); $imglist = filelist($phpbb_root_path . $config['ranks_path'], ''); - $edit_img = $filename_list = ''; foreach ($imglist as $path => $img_ary) { + sort($img_ary); + foreach ($img_ary as $img) { $img = $path . $img; @@ -202,7 +203,7 @@ class acp_ranks $sql = 'SELECT * FROM ' . RANKS_TABLE . ' - ORDER BY rank_min ASC, rank_special ASC, rank_title ASC'; + ORDER BY rank_special DESC, rank_min ASC, rank_title ASC'; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) -- cgit v1.2.1