Changeset 859 for trunk/Modules/Import/Import.php
- Timestamp:
- Jan 21, 2016, 10:20:04 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Import/Import.php
r838 r859 15 15 $this->License = 'GNU/GPL'; 16 16 $this->Description = 'Support for import of data.'; 17 $this->Dependencies = array( );17 $this->Dependencies = array('Translation'); 18 18 } 19 19 … … 183 183 function ImportLUA() 184 184 { 185 global $TranslationTree, $PatchVersion; 185 global $PatchVersion; 186 187 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 186 188 $Output = 'Načítání textů z LUA souboru...'; 187 189 … … 237 239 function UpdateTranslated() 238 240 { 239 global $TranslationTree, $PatchVersion, $Config; 240 241 global $PatchVersion, $Config; 242 243 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 241 244 $Output = '<br /><br />Začínám se synchronizací VersionEnd u přeložených textů<br />'; 242 245 foreach($TranslationTree as $Group) … … 341 344 function ImportDBC() 342 345 { 343 global $System, $TranslationTree, $Config; 344 346 global $System, $Config; 347 348 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 345 349 $Output = 'Načítání textů z DBC souboru...'; 346 350 if(($this->Group['DBCFileName'] != '') and ($this->Group['TablePrefix'] != '')) … … 392 396 function ImportGroup($GroupId) 393 397 { 394 global $TranslationTree;398 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 395 399 396 400 $this->Group = $TranslationTree[$GroupId]; … … 406 410 function ImportSQL() 407 411 { 408 global $TranslationTree, $PatchVersion; 409 410 $Output= ''; 412 global $PatchVersion; 413 414 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree(); 415 $Output = ''; 411 416 $File = new FileStream(); 412 417 $File->OpenFile(dirname(__FILE__).'/../../source/'.$this->Version['Version'].'/sql/'.$this->Group['MangosTable'].'.sql');
Note:
See TracChangeset
for help on using the changeset viewer.