diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2024-03-28 02:31:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2024-03-28 02:31:50 +0000 |
commit | 2f8d1c67019eb00292f0ef838c6330ead4df97d3 (patch) | |
tree | 6cb3bc20dc573bd9d6a30bc05355365b7b403846 /includes/htmlform/fields | |
parent | 71225c8ad9e4c7479a617d479b7f30bf1c5d9670 (diff) | |
parent | f46fba34eb8ec206eee001e1a3745b438a6f1542 (diff) | |
download | mediawikicore-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.php | 8 |
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 |