Changeset 855 for trunk/includes
- Timestamp:
- Jan 19, 2016, 11:10:33 PM (9 years ago)
- Location:
- trunk/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/Global.php
r854 r855 343 343 344 344 $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`'); 346 347 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; 351 355 } 352 356 $DbResult = $System->Database->query('SELECT * FROM `GroupItem` ORDER BY `Group`, `Sequence`'); -
trunk/includes/Locale.php
r843 r855 147 147 function UpdateToDatabase(Database $Database, $LangCode) 148 148 { 149 $DbResult = $Database->select('Language', '*', ' Code='.$Database->quote($LangCode));149 $DbResult = $Database->select('Language', '*', '`Code`='.$Database->quote($LangCode)); 150 150 if($DbResult->num_rows > 0) 151 151 { … … 153 153 foreach($this->Texts->Data as $Index => $Item) 154 154 { 155 $DbResult = $Database->select('Locale', '*', '(`Original` ='.$Database->quote($Index).') AND (`Language`='.($Language['Id']).')'); 155 $DbResult = $Database->select('Locale', '*', '(`Original` ='.$Database->quote($Index). 156 ') AND (`Language`='.($Language['Id']).')'); 156 157 if($DbResult->num_rows > 0) 157 158 $Database->update('Locale', '(`Language`='.($Language['Id']).') AND '. -
trunk/includes/System.php
r854 r855 452 452 while($Group = $DbResult->fetch_assoc()) 453 453 { 454 $Groups[T($Group['Name'])] = $Group; 455 } 456 ksort($Groups); 457 foreach($Groups as $Group) 458 { 454 459 $Output .= '<div id="menuitem-group'.$Group['Id'].'" onmouseover="show(\'group'.$Group['Id'].'\')" onmouseout="hide(\'group'.$Group['Id'].'\')">'. 455 460 '<a href="'.$this->System->Link('/TranslationList.php?group='.$Group['Id'].
Note:
See TracChangeset
for help on using the changeset viewer.