Changeset 773 for trunk/Modules/Forum


Ignore:
Timestamp:
Jan 31, 2014, 12:17:43 PM (11 years ago)
Author:
maron
Message:
  • Fixed: RSS Forum link
File:
1 edited

Legend:

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

    r767 r773  
    282282          $TitleLength = 50;
    283283          mb_internal_encoding('utf-8');
    284           $DbResult = $this->Database->query('SELECT `ID`, UNIX_TIMESTAMP(`Date`) AS `UnixDate`, '.
     284          $DbResult = $this->Database->query('SELECT `Thread`, `ID`, UNIX_TIMESTAMP(`Date`) AS `UnixDate`, '.
    285285      '`User`, `UserName`, `Text`, ( SELECT `Text` FROM `ForumThread` '.
    286       'WHERE `ID` = `ForumText`.`Thread`) AS `Thread` FROM `ForumText` ORDER BY `ID` DESC LIMIT 20');
     286      'WHERE `ID` = `ForumText`.`Thread`) AS `ThreadText` FROM `ForumText` ORDER BY `ID` DESC LIMIT 20');
    287287          while($DbRow = $DbResult->fetch_assoc())
    288288          {
     
    291291            $Items[] = array
    292292            (
    293               'Title' =>  $DbRow['Thread'].' - '.$DbRow['UserName'].': ',
    294               'Link' =>  'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/forum/?Thread='.$DbRow['ID']),
     293              'Title' =>  $DbRow['ThreadText'].' - '.$DbRow['UserName'].': ',
     294              'Link' =>  'http://'.$this->System->Config['Web']['Host'].$this->System->Link('/forum/?Thread='.$DbRow['Thread']),
    295295              'Description' => $parser->qparse($DbRow['Text']),
    296296              'Time' => $DbRow['UnixDate'],
Note: See TracChangeset for help on using the changeset viewer.