aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2024-03-28 02:31:50 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2024-03-28 02:31:50 +0000
commit2f8d1c67019eb00292f0ef838c6330ead4df97d3 (patch)
tree6cb3bc20dc573bd9d6a30bc05355365b7b403846 /includes/htmlform/fields
parent71225c8ad9e4c7479a617d479b7f30bf1c5d9670 (diff)
parentf46fba34eb8ec206eee001e1a3745b438a6f1542 (diff)
downloadmediawikicore-2f8d1c67019eb00292f0ef838c6330ead4df97d3.tar.gz
mediawikicore-2f8d1c67019eb00292f0ef838c6330ead4df97d3.zip
Merge "HTMLForm: Make raw InfoFields work in Codex"
Diffstat (limited to 'includes/htmlform/fields')
-rw-r--r--includes/htmlform/fields/HTMLInfoField.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/htmlform/fields/HTMLInfoField.php b/includes/htmlform/fields/HTMLInfoField.php
index 813ba6c2dc1d..cedf2edcb23b 100644
--- a/includes/htmlform/fields/HTMLInfoField.php
+++ b/includes/htmlform/fields/HTMLInfoField.php
@@ -121,6 +121,14 @@ class HTMLInfoField extends HTMLFormField {
return parent::getOOUI( $value );
}
+ public function getCodex( $value ) {
+ if ( !empty( $this->mParams['rawrow'] ) ) {
+ return $value;
+ }
+
+ return parent::getCodex( $value );
+ }
+
/**
* @inheritDoc
* @stable to override