X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FFeed.php;h=635b04e4d45641dc813748b16867dc987b56fb3f;hb=af94bc9c69db033c7308192b42a47a4f27e25878;hp=caf2e5716ad458937b662e29c4a445a23bf70b60;hpb=64797b281d1d8f3221aa61a00a36922b961f3922;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Feed.php b/includes/Feed.php index caf2e5716a..635b04e4d4 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(); ?>