X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FFeed.php;h=8bfe1c7ef9c1082982aa2d1da0b09dec9955004d;hb=2c4add9c74970f6614e9792bb50a2192dc6b635f;hp=2133dae48c8534ca583742497c9f6c8fb79617e7;hpb=b1ef4a066aa21858d2fccf3982bfcdbe641b7f92;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' ); }