mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
Merge remote-tracking branch 'github-bantu/ticket/10550' into develop-olympus
By Andreas Fischer via Andreas Fischer * github-bantu/ticket/10550: [ticket/10550] Sort not installed styles list in the styles section of the ACP.
This commit is contained in:
commit
7eaedcc8de
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user