Changeset 850 for trunk/Modules/News


Ignore:
Timestamp:
Jan 17, 2016, 8:15:03 PM (9 years ago)
Author:
chronos
Message:
  • Added: List of latest forum posts on front page.
File:
1 edited

Legend:

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

    r839 r850  
    2929  function ShowBox()
    3030  {
    31     $Output = '<strong><a href="'.$this->System->Link('/news/').'">'.T('News').':</a></strong><div class="NewsBox">';
     31    $Count = 6;
     32    $Output = '<strong><a href="'.$this->System->Link('/news/').'">'.T('News').':</a></strong>'.
     33    '<div class="NewsBox">';
    3234    $DbResult = $this->Database->query('SELECT `News`.`Time`, `User`.`Name`, `News`.`Text`,`News`.`Title`, `News`.`Id` '.
    33       ' FROM `News` JOIN `User` ON `User`.`ID` = `News`.`User` ORDER BY `Time` DESC LIMIT 10');
     35      ' FROM `News` JOIN `User` ON `User`.`ID` = `News`.`User` ORDER BY `Time` DESC LIMIT '.$Count);
    3436    while($DbRow = $DbResult->fetch_assoc())
    3537    {
Note: See TracChangeset for help on using the changeset viewer.