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:
b1e2b87
)
Use Html::element() for Xml::submitButton()
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Wed, 27 Jan 2010 18:59:52 +0000
(18:59 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Wed, 27 Jan 2010 18:59:52 +0000
(18:59 +0000)
There are a bunch of other places where we could switch to Html methods
here too. See
<http://www.mediawiki.org/wiki/Special:Code/MediaWiki/61130#c5451>.
includes/Xml.php
patch
|
blob
|
history
diff --git
a/includes/Xml.php
b/includes/Xml.php
index
0cd052b
..
45517cc
100644
(file)
--- a/
includes/Xml.php
+++ b/
includes/Xml.php
@@
-395,7
+395,7
@@
class Xml {
* @return string HTML
*/
public static function submitButton( $value, $attribs=array() ) {
- return
self
::element( 'input', array( 'type' => 'submit', 'value' => $value ) + $attribs );
+ return
Html
::element( 'input', array( 'type' => 'submit', 'value' => $value ) + $attribs );
}
/**