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:
8e21d59
)
bug 33035: Followup r105925: set to null rather than unset so we don't get an undefin...
author
Brion Vibber
<brion@users.mediawiki.org>
Tue, 13 Dec 2011 19:58:44 +0000
(19:58 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Tue, 13 Dec 2011 19:58:44 +0000
(19:58 +0000)
Apparently the unset() in Language::setCode() could cause the later is_null check in getHtmlCode() to fail, though I could not reproduce it myself.
languages/Language.php
patch
|
blob
|
history
diff --git
a/languages/Language.php
b/languages/Language.php
index
7d4041a
..
dfc0c8b
100644
(file)
--- a/
languages/Language.php
+++ b/
languages/Language.php
@@
-3484,7
+3484,7
@@
class Language {
public function setCode( $code ) {
$this->mCode = $code;
// Ensure we don't leave an incorrect html code lying around
-
unset( $this->mHtmlCode )
;
+
$this->mHtmlCode = null
;
}
/**