php has a constant for this

This commit is contained in:
Shish 2009-05-08 21:14:22 -07:00
parent 4b4d80f523
commit fec1c016c4
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class RSS_Comments implements Extension {
$comment_id = $comment['comment_id']; $comment_id = $comment['comment_id'];
$link = make_link("post/view/$image_id"); $link = make_link("post/view/$image_id");
$owner = html_escape($comment['user_name']); $owner = html_escape($comment['user_name']);
$posted = strftime("%a, %d %b %Y %T %Z", $comment['posted_timestamp']); $posted = date(DATE_RSS, $comment['posted_timestamp']);
$comment = html_escape($comment['comment']); $comment = html_escape($comment['comment']);
$content = html_escape("$owner: $comment"); $content = html_escape("$owner: $comment");

View File

@ -64,7 +64,7 @@ class RSS_Images implements Extension {
$owner = $image->get_owner(); $owner = $image->get_owner();
$thumb_url = $image->get_thumb_link(); $thumb_url = $image->get_thumb_link();
$image_url = $image->get_image_link(); $image_url = $image->get_image_link();
$posted = strftime("%a, %d %b %Y %T %Z", $image->posted_timestamp); $posted = date(DATE_RSS, $image->posted_timestamp);
$content = html_escape( $content = html_escape(
"<p>" . Themelet::build_thumb_html($image) . "</p>" . "<p>" . Themelet::build_thumb_html($image) . "</p>" .
"<p>Uploaded by " . $owner->name . "</p>" "<p>Uploaded by " . $owner->name . "</p>"