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
					
				| @ -5,6 +5,7 @@ class Image { | |||||||
| 	var $height, $width; | 	var $height, $width; | ||||||
| 	var $hash, $filesize; | 	var $hash, $filesize; | ||||||
| 	var $filename, $ext; | 	var $filename, $ext; | ||||||
|  | 	var $posted; | ||||||
| 
 | 
 | ||||||
| 	public function Image($a=false, $b=false, $c=false) { | 	public function Image($a=false, $b=false, $c=false) { | ||||||
| 		if($b == false && $c == false) { | 		if($b == false && $c == false) { | ||||||
| @ -24,6 +25,7 @@ class Image { | |||||||
| 		$this->ext      = $row['ext']; | 		$this->ext      = $row['ext']; | ||||||
| 		$this->width    = $row['width']; | 		$this->width    = $row['width']; | ||||||
| 		$this->height   = $row['height']; | 		$this->height   = $row['height']; | ||||||
|  | 		$this->posted   = $row['posted']; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	private function mime_to_ext($mime) { | 	private function mime_to_ext($mime) { | ||||||
|  | |||||||
| @ -32,6 +32,7 @@ class RSS_Images extends Extension { | |||||||
| 			$link = make_link("post/view/{$image->id}"); | 			$link = make_link("post/view/{$image->id}"); | ||||||
| 			$tags = $image->get_tag_list(); | 			$tags = $image->get_tag_list(); | ||||||
| 			$owner = $image->get_owner(); | 			$owner = $image->get_owner(); | ||||||
|  | 			$posted = $image->posted; // FIXME: MySQL date != RSS date
 | ||||||
| 			$content = html_escape( | 			$content = html_escape( | ||||||
| 				"<p>" . build_thumb_html($image) . "</p>" . | 				"<p>" . build_thumb_html($image) . "</p>" . | ||||||
| 				"<p>Uploaded by " . $owner->name . "</p>" | 				"<p>Uploaded by " . $owner->name . "</p>" | ||||||
| @ -42,6 +43,7 @@ class RSS_Images extends Extension { | |||||||
| 					<title>{$image->id} - $tags</title> | 					<title>{$image->id} - $tags</title> | ||||||
| 					<link>$link</link> | 					<link>$link</link> | ||||||
| 					<guid isPermaLink=\"true\">$link</guid>
 | 					<guid isPermaLink=\"true\">$link</guid>
 | ||||||
|  | 					<pubDate>$posted</pubDate> | ||||||
| 					<description>$content</description> | 					<description>$content</description> | ||||||
| 				</item> | 				</item> | ||||||
| 			";
 | 			";
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user