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:
cb1c884
)
Follow up r60599. Make normalizeUnicode() work even if $wgContLang is still not set,
author
Platonides
<platonides@users.mediawiki.org>
Sat, 4 Jun 2011 21:19:07 +0000
(21:19 +0000)
committer
Platonides
<platonides@users.mediawiki.org>
Sat, 4 Jun 2011 21:19:07 +0000
(21:19 +0000)
just as it did before (eg. getGPCVal() check). This allows for early calls before
MediaWiki is completely initialised.
includes/WebRequest.php
patch
|
blob
|
history
diff --git
a/includes/WebRequest.php
b/includes/WebRequest.php
index
9ede547
..
53881ef
100644
(file)
--- a/
includes/WebRequest.php
+++ b/
includes/WebRequest.php
@@
-227,7
+227,7
@@
class WebRequest {
}
} else {
global $wgContLang;
- $data =
$wgContLang->normalize
( $data );
+ $data =
isset( $wgContLang ) ? $wgContLang->normalize( $data ) : UtfNormal::cleanUp
( $data );
}
return $data;
}