Changeset 727 for trunk/Modules/Translation/Form.php
- Timestamp:
- Jan 7, 2014, 9:54:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Form.php
r710 r727 58 58 59 59 if($Action == 'delete') $Output = $this->Delete(); 60 else $Output = $this->ShowForm();60 else $Output = $this->ShowForm(); 61 61 return($Output); 62 62 } … … 290 290 function Delete() 291 291 { 292 global $TranslationTree; 293 292 294 if($this->System->User->Licence(LICENCE_MODERATOR)) 293 295 { 296 $GroupId = LoadGroupIdParameter(); 297 $this->GroupId = $GroupId; 298 $Table = $TranslationTree[$GroupId]['TablePrefix']; 294 299 $TextID = $_GET['ID']; 295 300 $this->Database->query('DELETE FROM `'.$Table.'` WHERE `ID` = '.$TextID.' AND `Language` <> '.$this->System->Config['OriginalLanguage']); 296 301 $Output = ShowMessage('Překlad byl smazán.'); 297 $this->System->ModuleManager->Modules['Log']->WriteLog('Překlad byl smazán! <a href="'.$this->System->Link('/form.php?group='.$ GroupID.'&ID='.$TextID).'">'.$TextID.'</a>', LOG_TYPE_MODERATOR);302 $this->System->ModuleManager->Modules['Log']->WriteLog('Překlad byl smazán! <a href="'.$this->System->Link('/form.php?group='.$this->GroupId.'&ID='.$TextID).'">'.$TextID.'</a>', LOG_TYPE_MODERATOR); 298 303 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 299 304 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.