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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.