Changeset 510 for trunk/action.php


Ignore:
Timestamp:
Feb 15, 2013, 11:02:13 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Novinky na webu nyní mají titulek. U starých novinek se nastaví jako titulek jméno uživatele, jako to bylo dříve.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/action.php

    r507 r510  
    271271  if($User->Licence(LICENCE_ADMIN)) $Output .= ' <a href="admin/?action=addnew">Vložit</a>';
    272272  $Output .= '<div class="shoutbox">';
    273   $DbResult = $System->Database->query('SELECT `News`.`Time`, `News`.`Text`, `User`.`Name` AS `User` FROM `News` JOIN `User` ON `User`.`Id`=`News`.`User` ORDER BY `News`.`Time` DESC '.$PageList['SQLLimit']);
     273  $DbResult = $System->Database->query('SELECT `News`.`Time`, `News`.`Text`, `News`.`Title`, '.
     274        '`User`.`Name` AS `User` FROM `News` JOIN `User` ON `User`.`Id`=`News`.`User` ORDER BY `News`.`Time` DESC '.$PageList['SQLLimit']);
    274275  while($Line = $DbResult->fetch_assoc())
    275     $Output .= '<div><strong>'.HumanDate($Line['Time']).'</strong> '.$Line['Text'].' ('.$Line['User'].')</div>';
     276    $Output .= '<div><strong>'.$Line['Title'].' ('.HumanDate($Line['Time']).')</strong> '.$Line['Text'].' ('.$Line['User'].')</div>';
    276277  $Output .= '</div>'.$PageList['Output'];
    277278  return($Output);
Note: See TracChangeset for help on using the changeset viewer.