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:
fba3528
)
typecast $attribs to an array to avoid on-site notices
author
Aaron Schulz
<aaron@users.mediawiki.org>
Fri, 18 Sep 2009 14:55:42 +0000
(14:55 +0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Fri, 18 Sep 2009 14:55:42 +0000
(14:55 +0000)
includes/Html.php
patch
|
blob
|
history
diff --git
a/includes/Html.php
b/includes/Html.php
index
8aa1de6
..
26c427c
100644
(file)
--- a/
includes/Html.php
+++ b/
includes/Html.php
@@
-293,10
+293,11
@@
class Html {
* @return string HTML fragment that goes between element name and '>'
* (starting with a space if at least one attribute is output)
*/
- public static function expandAttributes( $attribs
= array()
) {
+ public static function expandAttributes( $attribs ) {
global $wgHtml5, $wgWellFormedXml;
$ret = '';
+ $attribs = (array)$attribs;
foreach ( $attribs as $key => $value ) {
if ( $value === false ) {
continue;