mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Sort topic icons/smilies by filename when adding new topics/smilies (Bug #13501)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8974 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
dc8e30e734
commit
dc4197d651
1 changed files with 12 additions and 0 deletions
|
@ -73,6 +73,13 @@ class acp_icons
|
||||||
|
|
||||||
foreach ($imglist as $path => $img_ary)
|
foreach ($imglist as $path => $img_ary)
|
||||||
{
|
{
|
||||||
|
if (empty($img_ary))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
asort($img_ary, SORT_STRING);
|
||||||
|
|
||||||
foreach ($img_ary as $img)
|
foreach ($img_ary as $img)
|
||||||
{
|
{
|
||||||
$img_size = getimagesize($phpbb_root_path . $img_path . '/' . $path . $img);
|
$img_size = getimagesize($phpbb_root_path . $img_path . '/' . $path . $img);
|
||||||
|
@ -99,6 +106,11 @@ class acp_icons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir($dir);
|
closedir($dir);
|
||||||
|
|
||||||
|
if (!empty($_paks))
|
||||||
|
{
|
||||||
|
asort($_paks, SORT_STRING);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue