Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git] / includes / htmlform / HTMLInfoField.php
index a422047..ada4fb6 100644 (file)
@@ -14,6 +14,16 @@ class HTMLInfoField extends HTMLFormField {
                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( [
+                       'label' => $value,
+               ] );
+       }
+
        public function getTableRow( $value ) {
                if ( !empty( $this->mParams['rawrow'] ) ) {
                        return $value;