Merge "build: Enable karma debug log and use progress reporter"
[lhc/web/wiklou.git] / includes / specials / SpecialComparePages.php
index da1a54c..fbc5984 100644 (file)
@@ -49,10 +49,11 @@ class SpecialComparePages extends SpecialPage {
        public function execute( $par ) {
                $this->setHeaders();
                $this->outputHeader();
+               $this->getOutput()->addModuleStyles( 'mediawiki.special.comparepages.styles' );
 
-               $form = new HTMLForm( array(
+               $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',