Changeset 641
- Timestamp:
- Dec 12, 2013, 10:04:28 AM (11 years ago)
- Location:
- trunk/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/Version.php
r639 r641 6 6 // and system will need database update. 7 7 8 $Revision = 6 39; // Subversion revision8 $Revision = 641; // Subversion revision 9 9 $DatabaseRevision = 610; // Database structure revision 10 $ReleaseTime = '2013-12-1 1';10 $ReleaseTime = '2013-12-12'; -
trunk/includes/global.php
r636 r641 548 548 foreach($TablesColumn as $Table => $Column) 549 549 { 550 $orderinby = ' ORDER BY ID DESC '; 550 551 $sql = 'SELECT `ID`, (SELECT CONCAT( \''.GetIDbyName($Table).'\' )) AS `GoupId`,`'.$Column.'` AS Orig, (SELECT `'.$Column.'` FROM `'.$Table.'` AS `T` WHERE '. 551 '(`O`.`Entry` = `T`.`Entry`) AND (`Language` <> '.$Config['OriginalLanguage'].') LIMIT 1) AS `Tran` FROM `'.$Table.'` AS `O` WHERE ';552 '(`O`.`Entry` = `T`.`Entry`) AND (`Language` <> '.$Config['OriginalLanguage'].') '.$orderinby.' LIMIT 1) AS `Tran` FROM `'.$Table.'` AS `O` WHERE '; 552 553 $groupby = ' GROUP BY `'.$Column.'` '; 553 $orderby = ' ORDER BY LENGTH(Orig) DESC ';554 554 555 555 $where = '(`Language` = '.$Config['OriginalLanguage'].') '; … … 582 582 } 583 583 if ($SqlOK) { 584 $orderby = ' ORDER BY LENGTH(Orig) DESC '; 584 585 $DbResult = $System->Database->query($sqlall.$orderby); 585 586 // echo ($sql.'|'.$where.'|'.$groupby);
Note:
See TracChangeset
for help on using the changeset viewer.