From 4ac9fa081a7c045f6a9f1cfc529d82423f485b2e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 8 Dec 2013 09:55:49 +0100 Subject: Update to MediaWiki 1.22.0 --- includes/Feed.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'includes/Feed.php') diff --git a/includes/Feed.php b/includes/Feed.php index caf2e571..635b04e4 100644 --- a/includes/Feed.php +++ b/includes/Feed.php @@ -245,7 +245,7 @@ abstract class ChannelFeed extends FeedItem { global $wgRequest; $ctype = $wgRequest->getVal( 'ctype', 'application/xml' ); $allowedctypes = array( 'application/xml', 'text/xml', 'application/rss+xml', 'application/atom+xml' ); - return (in_array( $ctype, $allowedctypes ) ? $ctype : 'application/xml'); + return ( in_array( $ctype, $allowedctypes ) ? $ctype : 'application/xml' ); } /** @@ -306,13 +306,13 @@ class RSSFeed extends ChannelFeed { function outItem( $item ) { ?> - <?php print $item->getTitle() ?> - getUrl(), PROTO_CURRENT ) ?> - rssIsPermalink ) print ' isPermaLink="false"' ?>>getUniqueId() ?> + <?php print $item->getTitle(); ?> + getUrl(), PROTO_CURRENT ); ?> + rssIsPermalink ) { print ' isPermaLink="false"'; } ?>>getUniqueId(); ?> getDescription() ?> - getDate() ) { ?>formatTime( $item->getDate() ) ?> - getAuthor() ) { ?>getAuthor() ?> - getComments() ) { ?>getComments(), PROTO_CURRENT ) ?> + getDate() ) { ?>formatTime( $item->getDate() ); ?> + getAuthor() ) { ?>getAuthor(); ?> + getComments() ) { ?>getComments(), PROTO_CURRENT ); ?> - getUniqueId() ?> - <?php print $item->getTitle() ?> - - getDate() ) { ?> - formatTime( $item->getDate() ) ?>Z + getUniqueId(); ?> + <?php print $item->getTitle(); ?> + + getDate() ) { ?> + formatTime( $item->getDate() ); ?>Z getDescription() ?> - getAuthor() ) { ?>getAuthor() ?> + getAuthor() ) { ?>getAuthor(); ?>