Changeset 893 for trunk/includes/Global.php
- Timestamp:
- Mar 6, 2023, 1:48:45 AM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/Global.php
r891 r893 118 118 } 119 119 120 function GetTranslateGoogle($text, $withouttitle = false) 121 { 122 global $System; 123 120 function GetTranslateGoogle($System, $text, $withouttitle = false) 121 { 124 122 // $text = 'Balthule\'s letter is dire. This Cult of the Dark Strand is a thorn in my side that must be removed. I have been dealing with some of the Dark Strand scum northeast of here at Ordil\'Aran. One of their number possesses a soul gem that I believe holds the secret to the cult\'s power.$b$bBring it to me, and I will be able to decipher the secrets held within.'; 125 123 // $text = htmlspecialchars($text); … … 130 128 // $text = str_replace('&','',$text); 131 129 // $text = str_replace(' ','%20',$text); 132 $DbResult = $System->Database->select('Language', '`Code`', '`Id`='.$System->User->Language); 130 $User = ModuleUser::Cast($System->GetModule('User'))->User; 131 $DbResult = $System->Database->select('Language', '`Code`', '`Id`='.$User->Language); 133 132 $DbRow = $DbResult->fetch_assoc(); 134 133 $lang = $DbRow['Code']; … … 413 412 { 414 413 global $System; 415 $TranslationTree = $System->ModuleManager->Modules['Translation']->GetTranslationTree();414 $TranslationTree = ModuleTranslation::Cast($System->ModuleManager->GetModule('Translation'))->GetTranslationTree(); 416 415 417 416 if (array_key_exists('group', $_GET)) $GroupId = $_GET['group'] * 1; … … 512 511 global $System; 513 512 514 $TranslationTree = $System->ModuleManager->Modules['Translation']->GetTranslationTree();513 $TranslationTree = ModuleTranslation::Cast($System->ModuleManager->GetModule('Translation'))->GetTranslationTree(); 515 514 516 515 foreach ($TranslationTree as $TableID => $Value)
Note:
See TracChangeset
for help on using the changeset viewer.