dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6294351
)
Fix E_NOTICE on line 76 if $_SERVER['HTTP_ACCEPT'] not set
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Mon, 26 Mar 2007 16:42:45 +0000
(16:42 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Mon, 26 Mar 2007 16:42:45 +0000
(16:42 +0000)
includes/Metadata.php
patch
|
blob
|
history
diff --git
a/includes/Metadata.php
b/includes/Metadata.php
index
98a92ec
..
9964a3d
100644
(file)
--- a/
includes/Metadata.php
+++ b/
includes/Metadata.php
@@
-73,6
+73,10
@@
function wfCreativeCommonsRdf($article) {
function rdfSetup() {
global $wgOut, $_SERVER;
+ if( !isset($_SERVER['HTTP_ACCEPT']) ) {
+ $_SERVER['HTTP_ACCEPT'] = '';
+ }
+
$rdftype = wfNegotiateType(wfAcceptToPrefs($_SERVER['HTTP_ACCEPT']), wfAcceptToPrefs(RDF_TYPE_PREFS));
if (!$rdftype) {