Nothing special. ksort()ing list of allowed filetypes in the admin panel to make editing the list marginally easier
authorDan
Sun, 25 Nov 2007 19:23:50 -0500
changeset 294 4ab30e8dd168
parent 293 3f98d4ba1e33
child 295 f948557af068
Nothing special. ksort()ing list of allowed filetypes in the admin panel to make editing the list marginally easier
includes/functions.php
plugins/SpecialAdmin.php
--- a/includes/functions.php	Sun Nov 25 19:03:50 2007 -0500
+++ b/includes/functions.php	Sun Nov 25 19:23:50 2007 -0500
@@ -2797,7 +2797,7 @@
 /**
  * Aggressively and hopefully non-destructively optimizes a blob of HTML.
  * @param string HTML to process
- * @return string much snaller HTML
+ * @return string much smaller HTML
  */
 
 function aggressive_optimize_html($html)
--- a/plugins/SpecialAdmin.php	Sun Nov 25 19:03:50 2007 -0500
+++ b/plugins/SpecialAdmin.php	Sun Nov 25 19:23:50 2007 -0500
@@ -756,6 +756,7 @@
     $t = -1;
     $cl = 'row1';
     echo "\n".'    <div class="tblholder">'."\n".'      <table cellspacing="1" cellpadding="2" style="margin: 0; padding: 0;" border="0">'."\n".'        <tr>'."\n        ";
+    ksort($mime_types);
     foreach($mime_types as $e => $m)
     {
       $c++;