* sort upload images.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user