Changeset 5027

Show
Ignore:
Timestamp:
01/19/07 22:13:38 (2 years ago)
Author:
bergie
Message:

Make feedvalidator.org happier about the default feeds

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/de.bitfolge.feedcreator/feedcreator.php

    r4522 r5027  
    801801        function rfc822() { 
    802802                //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); 
    805804                return $date; 
    806805        } 
  • trunk/src/net.nehmer.blog/handler/feed.php

    r5017 r5027  
    137137 
    138138        $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(); 
    140141 
    141142        $item->title = $article->title; 
     
    161162        } 
    162163 
    163         $item->author = $author->name
     164        $item->author = trim("{$author->name} <{$author->email}>")
    164165 
    165166        $item->description = ''; 
     
    180181            $item->description .= "\n" . $this->_datamanager->types['content']->convert_to_html(); 
    181182        } 
     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); 
    182186 
    183187        // TODO: Figure out the RSS multi-category support for real