Changeset 841 for trunk/Modules


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.
Location:
trunk/Modules
Files:
2 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>';
  • trunk/Modules/Export/Page.php

    r838 r841  
    287287        else $WithDiacritic = 0;
    288288        if (array_key_exists('Featured', $_POST)) $Export['Featured'] = 1;
    289         $this->System->Database->query('UPDATE `Export` SET `Title`="'.$_POST['Title'].'", `Featured`='.$Export['Featured'].', `Description`="'.$_POST['Description'].'", `WithDiacritic`='.$WithDiacritic.' WHERE Id='.$Export['Id']);
     289        $this->System->Database->query('UPDATE `Export` SET `Title`="'.$_POST['Title'].
     290          '", `Featured`='.$Export['Featured'].', `Description`="'.$_POST['Description'].
     291          '", `WithDiacritic`='.$WithDiacritic.' WHERE `Id`='.$Export['Id']);
    290292        $Export['Title'] = $_POST['Title'];
    291293        $Export['Description'] = $_POST['Description'];
Note: See TracChangeset for help on using the changeset viewer.