diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-03-05 09:06:02 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-03-05 09:06:02 +0100 |
commit | 0edd6983ba69e8195fa7cade96eca27df9ebf237 (patch) | |
tree | e0a5a8ee7fac4c7ce9d308419d13dbca13a7a609 /includes/HTMLForm.php | |
parent | 8ef4b96a9b23b2cfc0eed4da0d6d324da9f9da2f (diff) |
Update to MediaWiki 1.20.3
Diffstat (limited to 'includes/HTMLForm.php')
-rw-r--r-- | includes/HTMLForm.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 5c00b9f6..6f89d5b8 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -96,6 +96,7 @@ class HTMLForm extends ContextSource { // A mapping of 'type' inputs onto standard HTMLFormField subclasses static $typeMappings = array( + 'api' => 'HTMLApiField', 'text' => 'HTMLTextField', 'textarea' => 'HTMLTextAreaField', 'select' => 'HTMLSelectField', @@ -2425,3 +2426,21 @@ class HTMLEditTools extends HTMLFormField { return $msg; } } + +class HTMLApiField extends HTMLFormField { + public function getTableRow( $value ) { + return ''; + } + + public function getDiv( $value ) { + return $this->getTableRow( $value ); + } + + public function getRaw( $value ) { + return $this->getTableRow( $value ); + } + + public function getInputHTML( $value ) { + return ''; + } +} |