[ticket/10550] Sort not installed styles list in the styles section of the ACP.

PHPBB3-10550
This commit is contained in:
Andreas Fischer 2012-05-29 15:29:31 +02:00
parent efa96e1817
commit 701bf571df

View file

@ -667,7 +667,9 @@ inherit_from = {INHERIT_FROM}
if ($name && !in_array($name, $installed)) 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, 'path' => $file,
'name' => $name, 'name' => $name,
'copyright' => $items['copyright'], 'copyright' => $items['copyright'],
@ -683,6 +685,8 @@ inherit_from = {INHERIT_FROM}
if (sizeof($new_ary)) if (sizeof($new_ary))
{ {
ksort($new_ary);
foreach ($new_ary as $cfg) foreach ($new_ary as $cfg)
{ {
$template->assign_block_vars('uninstalled', array( $template->assign_block_vars('uninstalled', array(