dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make mediawiki.special.pageLanguage work again
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
HTMLInfoField.php
diff --git
a/includes/htmlform/HTMLInfoField.php
b/includes/htmlform/HTMLInfoField.php
index
a422047
..
a667653
100644
(file)
--- a/
includes/htmlform/HTMLInfoField.php
+++ b/
includes/htmlform/HTMLInfoField.php
@@
-14,6
+14,16
@@
class HTMLInfoField extends HTMLFormField {
return !empty( $this->mParams['raw'] ) ? $value : htmlspecialchars( $value );
}
return !empty( $this->mParams['raw'] ) ? $value : htmlspecialchars( $value );
}
+ public function getInputOOUI( $value ) {
+ if ( !empty( $this->mParams['raw'] ) ) {
+ $value = new OOUI\HtmlSnippet( $value );
+ }
+
+ return new OOUI\LabelWidget( array(
+ 'label' => $value,
+ ) );
+ }
+
public function getTableRow( $value ) {
if ( !empty( $this->mParams['rawrow'] ) ) {
return $value;
public function getTableRow( $value ) {
if ( !empty( $this->mParams['rawrow'] ) ) {
return $value;