Changeset 5027
- Timestamp:
- 01/19/07 22:13:38 (2 years ago)
- Files:
-
- trunk/src/de.bitfolge.feedcreator/feedcreator.php (modified) (1 diff)
- trunk/src/net.nehmer.blog/handler/feed.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/de.bitfolge.feedcreator/feedcreator.php
r4522 r5027 801 801 function rfc822() { 802 802 //return gmdate("r",$this->unix); 803 $date = gmdate("D, d M Y H:i:s", $this->unix); 804 if (TIME_ZONE!="") $date .= " ".str_replace(":","",TIME_ZONE); 803 $date = gmdate("D, d M Y H:i:s O", $this->unix); 805 804 return $date; 806 805 } trunk/src/net.nehmer.blog/handler/feed.php
r5017 r5027 137 137 138 138 $item = new FeedItem(); 139 $author = $_MIDCOM->auth->get_user($article->author); 139 $author_user = $_MIDCOM->auth->get_user($article->author); 140 $author = $author_user->get_storage(); 140 141 141 142 $item->title = $article->title; … … 161 162 } 162 163 163 $item->author = $author->name;164 $item->author = trim("{$author->name} <{$author->email}>"); 164 165 165 166 $item->description = ''; … … 180 181 $item->description .= "\n" . $this->_datamanager->types['content']->convert_to_html(); 181 182 } 183 184 // Replace links 185 $item->description = preg_replace(',<(a|link|img|script|form|input)([^>]+)(href|src|action)="/([^>"\s]+)",ie', '"<\1\2\3=\"' . $_MIDCOM->get_host_name() . '/\4\""', $item->description); 182 186 183 187 // TODO: Figure out the RSS multi-category support for real
