From 0edd6983ba69e8195fa7cade96eca27df9ebf237 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Tue, 5 Mar 2013 09:06:02 +0100 Subject: Update to MediaWiki 1.20.3 --- includes/HTMLForm.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'includes/HTMLForm.php') 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 ''; + } +} -- cgit v1.2.3-54-g00ecf