Changeset 727 for trunk/Modules/Translation
- Timestamp:
- Jan 7, 2014, 9:54:21 PM (11 years ago)
- Location:
- trunk/Modules/Translation
- Files:
-
- 3 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); -
trunk/Modules/Translation/Save.php
r724 r727 5 5 function Show() 6 6 { 7 global $TranslationTree ;7 global $TranslationTree, $Message, $MessageType; 8 8 9 9 $Output = ''; -
trunk/Modules/Translation/TranslationList.php
r661 r727 311 311 if($Group['LuaFileName'] != '') $Output .= $Group['LuaFileName'].'.lua '; 312 312 $Output .= '</td><td><a title="Změny po posledním importu u vybrané překladové skupiny" href="log.php?group='. 313 $Group['Id'].'&type=11">'.HumanDate($Group['LastImport']).'</a></td><td> '.GetVersionWOW($Group['LastVersion']).'</td>';313 $Group['Id'].'&type=11">'.HumanDate($Group['LastImport']).'</a></td><td><a href="'.$this->System->Link('/client-version/?action=item&id='.GetVersionWOWId($Group['LastVersion'])).'">'.GetVersionWOW($Group['LastVersion']).'</a></td>'; 314 314 if($this->System->User->Licence(LICENCE_ADMIN)) 315 315 $Output .= '<td><a href="?action=groupdelete&id='.$Group['Id'].'">Smazat</a></td>';
Note:
See TracChangeset
for help on using the changeset viewer.