Ignore:
Timestamp:
Jan 12, 2016, 10:33:43 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Improved language switching using language code in URL. This is more search engine friendly as each language have own fixed URL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Dictionary/Dictionary.php

    r838 r841  
    2828      $this->System->ModuleManager->Modules['Search']->RegisterSearch('dictionary',
    2929      T('Dictionary'), array('Text', 'Description'),
    30      '(SELECT * FROM `Dictionary` WHERE `Language` = '.$this->System->Config['OriginalLanguage'].') AS `T`', $this->System->Link('/dictionary/?search='));
     30     '(SELECT * FROM `Dictionary` WHERE `Language` = '.$this->System->Config['OriginalLanguage'].') AS `T`',
     31        $this->System->Link('/dictionary/?search='));
    3132  }
    3233}
     
    291292      if(!is_numeric($_SESSION['language'])) $Output .= '<td>'.$Line['LangName'].'</td>';
    292293      $Output .= '<td>'.$Line['Description'].'</td>'.
    293         '<td><a href="'.$this->System->Link('/user.php?user='.$Line['UserId']).'">'.$Line['UserName'].'</a></td>';
     294        '<td><a href="'.$this->System->Link('/user.php?user='.$Line['UserId']).'">'.
     295        $Line['UserName'].'</a></td>';
    294296      if($this->System->User->Licence(LICENCE_USER))
    295297      {
    296298        if($Line['UserId'] == $this->System->User->Id)
    297           $Output .= '<td><a href="?action=remove&amp;id='.$Line['Id'].'" onclick="return confirmAction(\''.T('Do you really want to delete item?').'\');">'.T('Delete').'</a>'.
     299          $Output .= '<td><a href="?action=remove&amp;id='.$Line['Id'].
     300            '" onclick="return confirmAction(\''.T('Do you really want to delete item?').'\');">'.T('Delete').'</a>'.
    298301            ' <a href="?action=modify&amp;id='.$Line['Id'].'">'.T('Modify').'</a></td>';
    299302          else $Output .= '<td></td>';
Note: See TracChangeset for help on using the changeset viewer.