cvs: phpweb /include layout.inc

From: Date: Sun, 11 May 2008 16:04:13 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-1711@lists.php.net to get a copy of this message
bjori Sun May 11 16:04:13 2008 UTC Modified files: /phpweb/include layout.inc Log: Use the published date in the intro date http://cvs.php.net/viewvc.cgi/phpweb/include/layout.inc?r1=1.285&r2=1.286&diff_format=u Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.285 phpweb/include/layout.inc:1.286 --- phpweb/include/layout.inc:1.285 Sun Apr 6 16:11:44 2008 +++ phpweb/include/layout.inc Sun May 11 16:04:12 2008 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.285 2008/04/06 16:11:44 bjori Exp $ */ +/* $Id: layout.inc,v 1.286 2008/05/11 16:04:12 bjori Exp $ */ // Set the static content root differently on php.net $_SERVER['STATIC_ROOT'] = ($MYSITE == 'http://www.php.net/') ? @@ -695,15 +695,15 @@ } // PHP4 strtotime() doesn't support RFC3339 timestamps - $updated = substr($item["updated"], 0, 10); - $newsdate = date("d-M-Y", strtotime($updated)); + $published = substr($item["published"], 0, 10); + $newsdate = date("d-M-Y", strtotime($published)); echo <<< EOT <div class="newsItem hentry{$vevent}"> <div class="newsImage">{$image}</div> <h1 class="summary entry-title"><a name="{$id}" id="{$id}" href="{$permlink}" rel="bookmark" class="bookmark">{$item["title"]}</a></h1> <div class="entry-content description"> - <abbr class="updated newsdate" title="{$item["updated"]}">[{$newsdate}]</abbr> + <abbr class="published newsdate" title="{$item["published"]}">[{$newsdate}]</abbr> {$item["content"]} </div> </div>

« previous php.webmaster (#1711) next »