svn: /web/php-bugs/trunk/include/ functions.php
| From: | Jani Taskinen | Date: | Wed, 29 Dec 2010 13:12:03 +0000 |
| Subject: | svn: /web/php-bugs/trunk/include/ functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-9928@lists.php.net to get a copy of this message | ||
jani Wed, 29 Dec 2010 13:12:03 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306820
Log:
- Bring some order here
Changed paths:
U web/php-bugs/trunk/include/functions.php
Modified: web/php-bugs/trunk/include/functions.php
===================================================================
--- web/php-bugs/trunk/include/functions.php 2010-12-29 12:54:52 UTC (rev 306819)
+++ web/php-bugs/trunk/include/functions.php 2010-12-29 13:12:03 UTC (rev 306820)
@@ -208,7 +208,7 @@
'Memory_MDB2simple',
DATABASE_DSN,
array (
- 'order' => 'id',
+ 'order' => 'disabled, id',
'whereAddOn' => $where,
'table' => 'bugdb_pseudo_packages',
'columnNameMaps' => array (
@@ -223,10 +223,16 @@
if (isset($data['children']))
{
$pseudo_pkgs[$data['name']] = array($data['long_name'],
$data['disabled']);
+ $long_names = array();
+ foreach ($data['children'] as $k => $v) {
+ $long_names[$k] = strtolower($v['long_name']);
+ }
+ array_multisort($long_names, SORT_ASC, SORT_STRING, $data['children']);
foreach ($data['children'] as $child)
{
$pseudo_pkgs[$child['name']] =
array(" {$child['long_name']}",
$child['disabled']);
}
+
} else if (!isset($pseudo_pkgs[$data['name']]))
$pseudo_pkgs[$data['name']] = array($data['long_name'],
$data['disabled']);
}