* sort upload images.

This commit is contained in:
wangyidong
2014-11-06 09:16:27 +00:00
parent 2a47b1ba25
commit 22dc72f739
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -390,7 +390,9 @@ class bug extends control
if(is_dir($extractPath))
{
$titles = array();
foreach(glob($extractPath . '/*') as $fileName)
$files = glob($extractPath . '/*');
sort($files);
foreach($files as $fileName)
{
$fileName = basename($fileName);
$titles[$fileName] = preg_replace('/^\d+_/', '', pathinfo($fileName, PATHINFO_FILENAME));