Merge "RequestContext: Load the request object for getRequest on first call"
[lhc/web/wiklou.git] / includes / specials / SpecialComparePages.php
index fc6b0c5..50a48c3 100644 (file)
@@ -43,16 +43,17 @@ class SpecialComparePages extends SpecialPage {
        /**
         * Show a form for filtering namespace and username
         *
-        * @param $par String
-        * @return String
+        * @param string $par
+        * @return string
         */
        public function execute( $par ) {
                $this->setHeaders();
                $this->outputHeader();
 
-               $form = new HTMLForm( array(
+               # Form (.mw-searchInput enables suggestions)
+               $form = HTMLForm::factory( 'ooui', array(
                        'Page1' => array(
-                               'type' => 'text',
+                               'type' => 'title',
                                'name' => 'page1',
                                'label-message' => 'compare-page1',
                                'size' => '40',
@@ -68,7 +69,7 @@ class SpecialComparePages extends SpecialPage {
                                'validation-callback' => array( $this, 'checkExistingRevision' ),
                        ),
                        'Page2' => array(
-                               'type' => 'text',
+                               'type' => 'title',
                                'name' => 'page2',
                                'label-message' => 'compare-page2',
                                'size' => '40',