aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-05-29 15:29:31 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-05-29 15:29:31 +0200
commit701bf571dfffa171271d567759cf92c3830d159c (patch)
tree47eb2e13fe29240af4ebf30512e22d024254e820 /phpBB/includes/acp
parentefa96e1817847b94abe6d6d0f3f4a8563339f745 (diff)
downloadforums-701bf571dfffa171271d567759cf92c3830d159c.tar
forums-701bf571dfffa171271d567759cf92c3830d159c.tar.gz
forums-701bf571dfffa171271d567759cf92c3830d159c.tar.bz2
forums-701bf571dfffa171271d567759cf92c3830d159c.tar.xz
forums-701bf571dfffa171271d567759cf92c3830d159c.zip
[ticket/10550] Sort not installed styles list in the styles section of the ACP.
PHPBB3-10550
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_styles.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_styles.php b/phpBB/includes/acp/acp_styles.php
index d7b0484af8..47cd02bca7 100644
--- a/phpBB/includes/acp/acp_styles.php
+++ b/phpBB/includes/acp/acp_styles.php
@@ -667,7 +667,9 @@ inherit_from = {INHERIT_FROM}
if ($name && !in_array($name, $installed))
{
- $new_ary[] = array(
+ // The array key is used for sorting later on.
+ // $file is appended because $name doesn't have to be unique.
+ $new_ary[$name . $file] = array(
'path' => $file,
'name' => $name,
'copyright' => $items['copyright'],
@@ -683,6 +685,8 @@ inherit_from = {INHERIT_FROM}
if (sizeof($new_ary))
{
+ ksort($new_ary);
+
foreach ($new_ary as $cfg)
{
$template->assign_block_vars('uninstalled', array(