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/Translation/UserLevel.php

    r833 r859  
    2121function GetXPFromTranslation($UserId)
    2222{
    23   global $System, $TranslationTree, $xp_from_word, $from_diakrit, $Config;
     23  global $System, $xp_from_word, $from_diakrit, $Config;
     24
     25  $TranslationTree = $System->ModuleManager->Modules['Translation']->GetTranslationTree();
    2426
    2527  $xp = 0;
     
    7274function UserLevelUpdate($UserId)
    7375{
    74   global $System, $TranslationTree, $Config;
     76  global $System, $Config;
    7577
     78  $TranslationTree = $System->ModuleManager->Modules['Translation']->GetTranslationTree();
    7679  // Main code for users
    7780  $DbResult = $System->Database->query('SELECT `ID`, `Name` FROM `User` WHERE `Id` = '.$UserId);
Note: See TracChangeset for help on using the changeset viewer.