From: <al...@us...> - 2008-08-24 19:12:46
|
Revision: 625 http://sciret.svn.sourceforge.net/sciret/?rev=625&view=rev Author: alpeb Date: 2008-08-24 19:12:43 +0000 (Sun, 24 Aug 2008) Log Message: ----------- Patch #1900432: alphabetically list icon names order in the Edit/Add Category view Modified Paths: -------------- trunk/views/EditCategory.php Modified: trunk/views/EditCategory.php =================================================================== --- trunk/views/EditCategory.php 2008-08-24 19:03:39 UTC (rev 624) +++ trunk/views/EditCategory.php 2008-08-24 19:12:43 UTC (rev 625) @@ -42,7 +42,13 @@ $dirname = 'uploads/icons'; $dir = dir($dirname); $firstIteration = true; + $entriesList = array(); while (false !== $entry = $dir->read()) { + $entriesList[] = $entry; + } + asort($entriesList); + + foreach($entriesList as $entry) { $pathInfo = pathinfo("$dirname/$entry"); if (is_dir("$dirname/$entry") || !isset($pathInfo['extension']) || !in_array($pathInfo['extension'], array('gif', 'png', 'jpeg', 'jpg')) || $entry == 'blank.gif') { continue; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |