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:
0b5389d
)
Fix "Invalid argument for foreach()" in Html
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Tue, 22 Sep 2009 17:41:34 +0000
(17:41 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Tue, 22 Sep 2009 17:41:34 +0000
(17:41 +0000)
Reported by Nikerabbit on IRC to happen on Preferences, although I
couldn't reproduce immediately. The change should be helpful for this
kind of thing anyway.
includes/Html.php
patch
|
blob
|
history
diff --git
a/includes/Html.php
b/includes/Html.php
index
068a9bf
..
821822c
100644
(file)
--- a/
includes/Html.php
+++ b/
includes/Html.php
@@
-107,6
+107,7
@@
class Html {
*/
public static function rawElement( $element, $attribs = array(), $contents = '' ) {
global $wgHtml5, $wgWellFormedXml;
+ $attribs = (array)$attribs;
# This is not required in HTML 5, but let's do it anyway, for
# consistency and better compression.
$element = strtolower( $element );