Page MenuHomePhabricator

Feed.php.diff.txt

Authored By
bzimport
Nov 21 2014, 8:09 PM
Size
990 B
Referenced Files
None
Subscribers
None

Feed.php.diff.txt

--- ../src/mediawiki-1.5.2/includes/Feed.php 2005-07-18 11:28:58.000000000 +0800
+++ includes/Feed.php 2006-01-06 17:00:01.478189096 +0800
@@ -197,11 +197,12 @@
* @param FeedItem item to be output
*/
function outItem( $item ) {
+ global $wgServer, $wgStylePath, $wgDefaultSkin;
?>
<item>
<title><?php print $item->getTitle() ?></title>
<link><?php print $item->getUrl() ?></link>
- <description><?php print $item->getDescription() ?></description>
+ <description>&lt;style type="text/css"&gt;@import "<?php print "$wgServer$wgStylePath/$wgDefaultSkin/main.css"?>";&lt;/style&gt;<?php print $item->getDescription() ?></description>
<?php if( $item->getDate() ) { ?><pubDate><?php print $this->formatTime( $item->getDate() ) ?></pubDate><?php } ?>
<?php if( $item->getAuthor() ) { ?><dc:creator><?php print $item->getAuthor() ?></dc:creator><?php }?>
<?php if( $item->getComments() ) { ?><comments><?php print $item->getComments() ?></comments><?php }?>

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1371
Default Alt Text
Feed.php.diff.txt (990 B)

Event Timeline