Changeset 636 for trunk


Ignore:
Timestamp:
Sep 14, 2009, 3:30:10 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Načítání RSS aktualit z nově upravené tabulky.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/rss.php

    r631 r636  
    1818  {
    1919    $Config['Web']['Title'] .= ' - články';
    20     $DbResult = $db->query('SELECT UNIX_TIMESTAMP(date), articles.* FROM articles ORDER BY date DESC LIMIT '.$NewsCount);
     20    $DbResult = $db->query('SELECT UNIX_TIMESTAMP(Time), Article.* FROM Article ORDER BY Time DESC LIMIT '.$NewsCount);
    2121    while($Row = $DbResult->fetch_assoc())
    2222    {
    2323      $Items[] = array(
    24         'Title' => $Row['title'],
     24        'Title' => $Row['Title'],
    2525        'Link' => 'http://'.$_SERVER['SERVER_NAME'].$Config['Web']['BaseURL'],
    26         'Description' => $Row['text'].' ('.$Row['autor'].')',
    27         'Time' => $Row['UNIX_TIMESTAMP(date)'],
     26        'Description' => $Row['Text'].' ('.$Row['Author'].')',
     27        'Time' => $Row['UNIX_TIMESTAMP(Time)'],
    2828      );
    2929    }
  • trunk/sql/updates/635.sql

    r635 r636  
    2323(4, 'Články');
    2424
    25 ALTER TABLE `Article` ADD FOREIGN KEY ( `Category` ) REFERENCES `wow`.`ArticleCategory` (`Id`);
     25ALTER TABLE `Article` ADD FOREIGN KEY ( `Category` ) REFERENCES `ArticleCategory` (`Id`);
Note: See TracChangeset for help on using the changeset viewer.