RSS post date, broken
git-svn-id: file:///home/shish/svn/shimmie2/trunk@52 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
3d2ea2a842
commit
35bae4f71d
2 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
|
@ -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(
|
||||
"<p>" . build_thumb_html($image) . "</p>" .
|
||||
"<p>Uploaded by " . $owner->name . "</p>"
|
||||
|
@ -42,6 +43,7 @@ class RSS_Images extends Extension {
|
|||
<title>{$image->id} - $tags</title>
|
||||
<link>$link</link>
|
||||
<guid isPermaLink=\"true\">$link</guid>
|
||||
<pubDate>$posted</pubDate>
|
||||
<description>$content</description>
|
||||
</item>
|
||||
";
|
||||
|
|
Reference in a new issue