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
cff8202
..
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;
@@
-23,6
+33,8
@@
class HTMLInfoField extends HTMLFormField {
}
/**
}
/**
+ * @param string $value
+ * @return string
* @since 1.20
*/
public function getDiv( $value ) {
* @since 1.20
*/
public function getDiv( $value ) {
@@
-34,6
+46,8
@@
class HTMLInfoField extends HTMLFormField {
}
/**
}
/**
+ * @param string $value
+ * @return string
* @since 1.20
*/
public function getRaw( $value ) {
* @since 1.20
*/
public function getRaw( $value ) {