Changeset 406

Show
Ignore:
Timestamp:
07/08/09 03:22:51 (11 years ago)
Author:
kovell
Message:

Fixes: Feed version correctly shown. Extra white space in class.comments removed.

Location:
dev/common
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • dev/common/feed.php

    r389 r406  
    2424require_once('common/includes/class.kill.php'); 
    2525require_once('common/includes/class.config.php'); 
     26// include feed_fetcher to get version number 
     27require_once('common/admin/feed_fetcher.php'); 
    2628 
    2729$config = new Config(KB_SITE); 
    2830// maximum amount of kills to return. 
    2931$maxreturned = 100; 
    30 $html .= '<?xml version="1.0" encoding="UTF-8" ?> 
     32$html = '<?xml version="1.0" encoding="UTF-8" ?> 
    3133<rss version="2.0"> 
    3234        <channel> 
     
    241243} 
    242244 
    243 $html .= '<finalkill>'.$finalkill.'</finalkill>\n'; 
     245$html .= '<finalkill>'.$finalkill."</finalkill>\n"; 
    244246foreach ($kills as $id => $timestamp) 
    245247{ 
     
    251253                                <pubDate>'.strftime("%a, %d %b %Y %T %Z", strtotime($timestamp))."</pubDate>\n"; 
    252254        if($kill->getExternalID()) $html .= "<apiID>".$kill->getExternalID()."</apiID>\n"; 
    253         $html .= '</item>\n'; 
     255        $html .= "</item>\n"; 
    254256} 
    255257$html .= '</channel></rss>'; 
  • dev/common/includes/class.comments.php

    r388 r406  
    9090    }  
    9191}  
    92 ?>  
     92?> 
  • dev/common/includes/globals.php

    r404 r406  
    77else 
    88{ 
    9         $svn_rev = '404'; 
     9        $svn_rev = '406'; 
    1010} 
    1111define('SVN_REV', $svn_rev);