Ignore:
Timestamp:
Jan 21, 2016, 10:20:04 AM (8 years ago)
Author:
chronos
Message:
  • Modified: Function GetTranslationTree moved from global to Translation module where it belongs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Import/Import.php

    r838 r859  
    1515    $this->License = 'GNU/GPL';
    1616    $this->Description = 'Support for import of data.';
    17     $this->Dependencies = array();
     17    $this->Dependencies = array('Translation');
    1818  }
    1919
     
    183183  function ImportLUA()
    184184  {
    185     global $TranslationTree, $PatchVersion;
     185    global $PatchVersion;
     186
     187    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    186188    $Output = 'Načítání textů z LUA souboru...';
    187189
     
    237239  function UpdateTranslated()
    238240  {
    239     global $TranslationTree, $PatchVersion, $Config;
    240 
     241    global $PatchVersion, $Config;
     242
     243    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    241244    $Output = '<br /><br />Začínám se synchronizací VersionEnd u přeložených textů<br />';
    242245    foreach($TranslationTree as $Group)
     
    341344  function ImportDBC()
    342345  {
    343     global $System, $TranslationTree, $Config;
    344 
     346    global $System, $Config;
     347
     348    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    345349    $Output = 'Načítání textů z DBC souboru...';
    346350    if(($this->Group['DBCFileName'] != '') and ($this->Group['TablePrefix'] != ''))
     
    392396  function ImportGroup($GroupId)
    393397  {
    394     global $TranslationTree;
     398    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    395399
    396400    $this->Group = $TranslationTree[$GroupId];
     
    406410  function ImportSQL()
    407411  {
    408     global $TranslationTree, $PatchVersion;
    409 
    410     $Output= '';
     412    global $PatchVersion;
     413
     414    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
     415    $Output = '';
    411416    $File = new FileStream();
    412417    $File->OpenFile(dirname(__FILE__).'/../../source/'.$this->Version['Version'].'/sql/'.$this->Group['MangosTable'].'.sql');
Note: See TracChangeset for help on using the changeset viewer.