Changeset 641 for trunk/includes/global.php
- Timestamp:
- Dec 12, 2013, 10:04:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.