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:
e0fe715
)
Make r66504 a little more concise
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Wed, 9 Jun 2010 20:49:00 +0000
(20:49 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Wed, 9 Jun 2010 20:49:00 +0000
(20:49 +0000)
includes/Xml.php
patch
|
blob
|
history
diff --git
a/includes/Xml.php
b/includes/Xml.php
index
22df176
..
f7ddb4c
100644
(file)
--- a/
includes/Xml.php
+++ b/
includes/Xml.php
@@
-275,7
+275,8
@@
class Xml {
* @return string HTML
*/
public static function input( $name, $size=false, $value=false, $attribs=array() ) {
- $attributes = array();
+ $attributes = array( 'name' => $name );
+
if( $size ) {
$attributes['size'] = $size;
}
@@
-284,8
+285,6
@@
class Xml {
$attributes['value'] = $value;
}
- $attributes['name'] = $name;
-
return self::element( 'input', $attributes + $attribs );
}