Ignore:
Timestamp:
Jan 19, 2016, 11:10:33 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Translation groups sorted by localized name again.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/Global.php

    r854 r855  
    343343
    344344  $Result = array();
    345   $DbResult = $System->Database->query('SELECT *, UNIX_TIMESTAMP(`LastImport`) AS `LastImportTime` FROM `Group` ORDER BY `Name`');
     345  $Groups = array();
     346  $DbResult = $System->Database->query('SELECT *, UNIX_TIMESTAMP(`LastImport`) AS `LastImportTime` FROM `Group`');
    346347  while($DbRow = $DbResult->fetch_assoc())
    347   {
    348     $DbRow['Items'] = array();
    349     $DbRow['Name'] = T($DbRow['Name']);
    350     $Result[$DbRow['Id']] = $DbRow;
     348    $Groups[T($DbRow['Name'])] = $DbRow;
     349  ksort($Groups);
     350  foreach($Groups as $Group)
     351  {
     352    $Group['Items'] = array();
     353    $Group['Game'] = T($Group['Name']);
     354    $Result[$Group['Id']] = $Group;
    351355  }
    352356  $DbResult = $System->Database->query('SELECT * FROM `GroupItem` ORDER BY `Group`, `Sequence`');
Note: See TracChangeset for help on using the changeset viewer.