Changeset 582 for trunk/Modules/Export/Export.php
- Timestamp:
- Sep 12, 2013, 11:19:43 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/Export.php
r573 r582 50 50 function BuildQuery($Group, $Columns = '', $Version = '') 51 51 { 52 global $TranslationTree , $Config;52 global $TranslationTree; 53 53 54 54 if ($Version <> '') … … 73 73 $Query = 'SELECT `T4`.*, '.$OriginalColumns.' FROM ('.$Query.') AS `T4` '. 74 74 ' LEFT JOIN `'.$Group['TablePrefix'].'` AS `T3` ON (`T3`.`Entry` = `T4`.`Entry`) '. 75 'AND (`T3`.`Language` = '.$ Config['OriginalLanguage'].') AND '.75 'AND (`T3`.`Language` = '.$this->System->Config['OriginalLanguage'].') AND '. 76 76 '(`T3`.`VersionStart` = `T4`.`VersionStart`) AND (`T3`.`VersionEnd` = `T4`.`VersionEnd`)'; 77 77 … … 81 81 function ExportToMangosSQL() 82 82 { 83 global $TranslationTree , $User, $Config;83 global $TranslationTree; 84 84 85 85 $this->LoadFilters(); … … 93 93 "-- Znaková sada: ".$this->Config['Database']['Charset']." / ".$this->Config['Web']['Charset']."\n". 94 94 "-- Diakritika: ".$this->AnoNe[$this->Export['WithDiacritic']]."\n". 95 "-- Vygeneroval uživatel: ".$ User->Name."\n".95 "-- Vygeneroval uživatel: ".$this->System->User->Name."\n". 96 96 "-- Vzato od uživatelů: ".$this->UserNames."\n". 97 97 "-- Generované tabulky: "; … … 149 149 function ExportToAoWoWSQL() 150 150 { 151 global $ Config, $TranslationTree, $AoWoWconf;151 global $TranslationTree, $AoWoWconf; 152 152 153 153 //require_once('../aowow/configs/config.php'); … … 175 175 $Ori_text = $Line['name']; 176 176 $DbResult2 = $Database2->query('SELECT `Text` AS `En`, 177 (SELECT `Text` FROM `'.$ Config['Database']['Database'].'`.`TextGlobalString` AS `TableTran`177 (SELECT `Text` FROM `'.$this->System->Config['Database']['Database'].'`.`TextGlobalString` AS `TableTran` 178 178 WHERE `TableEn`.`Entry` = `TableTran`.`Entry` AND (`Complete` = 1) AND '.$this->WhereLang.' AND '.$this->WhereUsers.$this->OrderByUserList.' LIMIT 1) AS `Tran` 179 FROM `'.$ Config['Database']['Database'].'`.`TextGlobalString` AS `TableEn` WHERE179 FROM `'.$this->System->Config['Database']['Database'].'`.`TextGlobalString` AS `TableEn` WHERE 180 180 `Text` = "'.addslashes($Ori_text).'" LIMIT 1'); 181 181 $Tran = $DbResult2->fetch_assoc(); … … 205 205 function ExportToXML() 206 206 { 207 global $TranslationTree , $User;207 global $TranslationTree; 208 208 209 209 $this->LoadFilters(); … … 215 215 " <time>".date('r')."</time>\n". 216 216 " <diacritics mode=".'"'.$this->Export['WithDiacritic'].'"'." />\n". 217 " <author>".$ User->Name."</author>\n".217 " <author>".$this->System->User->Name."</author>\n". 218 218 " <contributors>\n"; 219 219 foreach(explode(',', $this->UserNames) as $UserName) … … 258 258 function ExportToDBC() 259 259 { 260 global $TranslationTree , $Config;260 global $TranslationTree; 261 261 262 262 $this->LoadFilters();
Note:
See TracChangeset
for help on using the changeset viewer.