Changeset 445 for trunk/export/export.php
- Timestamp:
- Apr 11, 2010, 4:24:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/export.php
r444 r445 39 39 } 40 40 41 function BuildQuery($Group, $Columns = '' )41 function BuildQuery($Group, $Columns = '', $Version = '') 42 42 { 43 43 global $TranslationTree; 44 45 if ($Version <> '') 46 $ExportVersion = $Version; 47 else 48 $ExportVersion = $this->ClientVersion['BuildNumber']; 44 49 45 50 $Query = 'SELECT * FROM (SELECT `T`.*, '.$Columns.'`User`.`Name` AS `UserName` FROM `'.$Group['TablePrefix'].'` AS `T`'. … … 47 52 ' JOIN `User` ON `User`.`ID`=`T`.`User`'. 48 53 ' JOIN `ExportLanguage` ON (`ExportLanguage`.`Export`='.$this->Id.')'. 49 ' WHERE (`Complete` = 1) AND (`VersionStart` <= '.$ this->ClientVersion['BuildNumber'].') AND (`VersionEnd` >= '.$this->ClientVersion['BuildNumber'].')'.54 ' WHERE (`Complete` = 1) AND (`VersionStart` <= '.$ExportVersion.') AND (`VersionEnd` >= '.$ExportVersion.')'. 50 55 ' ORDER BY `ExportLanguage`.`Sequence`, `ExportUser`.`Sequence`) AS `TT` GROUP BY `TT`.`Entry`'; 51 56 52 57 // Build columns for english texts 53 58 $OriginalColumns = '';
Note:
See TracChangeset
for help on using the changeset viewer.