Ignore:
Timestamp:
Jan 7, 2014, 9:54:21 PM (11 years ago)
Author:
chronos
Message:
  • Added: Each client version as separated web page.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Translation/Form.php

    r710 r727  
    5858               
    5959    if($Action == 'delete') $Output = $this->Delete();
    60                 else $Output = $this->ShowForm();
     60                  else $Output = $this->ShowForm();
    6161                return($Output);
    6262        }
     
    290290        function Delete()
    291291        {
     292                global $TranslationTree;
     293               
    292294                if($this->System->User->Licence(LICENCE_MODERATOR))
    293295                {
     296                        $GroupId = LoadGroupIdParameter();
     297                  $this->GroupId = $GroupId;
     298                  $Table = $TranslationTree[$GroupId]['TablePrefix'];
    294299                        $TextID = $_GET['ID'];
    295300                        $this->Database->query('DELETE FROM `'.$Table.'` WHERE `ID` = '.$TextID.' AND `Language` <> '.$this->System->Config['OriginalLanguage']);
    296301                        $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.'&amp;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.'&amp;ID='.$TextID).'">'.$TextID.'</a>', LOG_TYPE_MODERATOR);
    298303                } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    299304                return($Output);
Note: See TracChangeset for help on using the changeset viewer.