X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FFeed.php;h=8bfe1c7ef9c1082982aa2d1da0b09dec9955004d;hb=7e18cfc3b5ed4e957a9ed8ac7af4a68d1a95576c;hp=2133dae48c8534ca583742497c9f6c8fb79617e7;hpb=cc4a0ea2a260622fa0fd74ca16fecd38582a49e1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Feed.php b/includes/Feed.php index 2133dae48c..8bfe1c7ef9 100644 --- a/includes/Feed.php +++ b/includes/Feed.php @@ -248,12 +248,12 @@ abstract class ChannelFeed extends FeedItem { global $wgRequest; $ctype = $wgRequest->getVal( 'ctype', 'application/xml' ); - $allowedctypes = array( + $allowedctypes = [ 'application/xml', 'text/xml', 'application/rss+xml', 'application/atom+xml' - ); + ]; return ( in_array( $ctype, $allowedctypes ) ? $ctype : 'application/xml' ); }