From 35bae4f71d67e9dfb6d0bcd1d5cc1a352a8772f8 Mon Sep 17 00:00:00 2001 From: shish Date: Thu, 3 May 2007 15:18:22 +0000 Subject: [PATCH] RSS post date, broken git-svn-id: file:///home/shish/svn/shimmie2/trunk@52 7f39781d-f577-437e-ae19-be835c7a54ca --- core/image.class.php | 2 ++ ext/rss_images.ext.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/image.class.php b/core/image.class.php index ed77c92b..e6438ab3 100644 --- a/core/image.class.php +++ b/core/image.class.php @@ -5,6 +5,7 @@ class Image { var $height, $width; var $hash, $filesize; var $filename, $ext; + var $posted; public function Image($a=false, $b=false, $c=false) { if($b == false && $c == false) { @@ -24,6 +25,7 @@ class Image { $this->ext = $row['ext']; $this->width = $row['width']; $this->height = $row['height']; + $this->posted = $row['posted']; } private function mime_to_ext($mime) { diff --git a/ext/rss_images.ext.php b/ext/rss_images.ext.php index 484dd3ce..a652a195 100644 --- a/ext/rss_images.ext.php +++ b/ext/rss_images.ext.php @@ -32,6 +32,7 @@ class RSS_Images extends Extension { $link = make_link("post/view/{$image->id}"); $tags = $image->get_tag_list(); $owner = $image->get_owner(); + $posted = $image->posted; // FIXME: MySQL date != RSS date $content = html_escape( "

" . build_thumb_html($image) . "

" . "

Uploaded by " . $owner->name . "

" @@ -42,6 +43,7 @@ class RSS_Images extends Extension { {$image->id} - $tags $link $link + $posted $content ";