dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "OutputPage::getCategories(): Add a possibility to distinguish "normal" and...
[lhc/web/wiklou.git]
/
includes
/
Feed.php
diff --git
a/includes/Feed.php
b/includes/Feed.php
index
2133dae
..
189fd9f
100644
(file)
--- a/
includes/Feed.php
+++ b/
includes/Feed.php
@@
-236,7
+236,6
@@
abstract class ChannelFeed extends FeedItem {
$wgOut->addVaryHeader( 'X-Forwarded-Proto' );
}
$wgOut->sendCacheControl();
$wgOut->addVaryHeader( 'X-Forwarded-Proto' );
}
$wgOut->sendCacheControl();
-
}
/**
}
/**
@@
-248,12
+247,12
@@
abstract class ChannelFeed extends FeedItem {
global $wgRequest;
$ctype = $wgRequest->getVal( 'ctype', 'application/xml' );
global $wgRequest;
$ctype = $wgRequest->getVal( 'ctype', 'application/xml' );
- $allowedctypes =
array(
+ $allowedctypes =
[
'application/xml',
'text/xml',
'application/rss+xml',
'application/atom+xml'
'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' );
}