Changeset 859 for trunk/Modules/Export


Ignore:
Timestamp:
Jan 21, 2016, 10:20:04 AM (9 years ago)
Author:
chronos
Message:
  • Modified: Function GetTranslationTree moved from global to Translation module where it belongs.
Location:
trunk/Modules/Export
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/CreateAddon.php

    r816 r859  
    103103  function MakeLanguageFiles()
    104104  {
    105     global $TranslationTree, $CreatedFileList;
     105    global $CreatedFileList;
     106
     107    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    106108
    107109    $Output = '';
     
    217219  function MakeClientStrings()
    218220  {
    219     global $TranslationTree;
     221    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    220222
    221223    $this->LoadFilters();
  • trunk/Modules/Export/Export.php

    r838 r859  
    7373  function BuildQuery($Group, $Version = '')
    7474  {
    75     global $TranslationTree;
     75    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    7676    $this->SaveAllUsers();
    7777
     
    153153  function ExportToMangosSQL()
    154154  {
    155     global $TranslationTree;
     155    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    156156
    157157    $this->LoadFilters();
     
    221221  function ExportToAoWoWSQL()
    222222  {
    223     global $TranslationTree, $AoWoWconf;
     223    global $AoWoWconf;
     224
     225    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    224226
    225227    //require_once('../aowow/configs/config.php');
     
    314316  function ExportToDBC()
    315317  {
    316     global $TranslationTree;
     318    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    317319
    318320    $this->LoadFilters();
     
    425427  function ExportToLua()
    426428  {
    427     global $TranslationTree;
     429    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    428430
    429431    $this->LoadFilters();
     
    642644  function ExportToXML()
    643645  {
    644     global $TranslationTree;
     646    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    645647
    646648    $this->LoadFilters();
     
    707709    $this->License = 'GNU/GPL';
    708710    $this->Description = 'Allow parametric export of translated texts to various supported output formats';
    709     $this->Dependencies = array();
     711    $this->Dependencies = array('Translation');
    710712  }
    711713
  • trunk/Modules/Export/Page.php

    r851 r859  
    157157  function ExportViewTranslators()
    158158  {
    159     global $TranslationTree;
     159    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    160160
    161161    $Output = '';
     
    319319  function ExportViewLanguages()
    320320  {
    321     global $TranslationTree;
     321    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    322322
    323323    $Output = '';
     
    410410  function ExportViewGroups()
    411411  {
    412     global $TranslationTree;
     412    $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();
    413413
    414414    $Output = '';
Note: See TracChangeset for help on using the changeset viewer.