/**
* 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',
'validation-callback' => array( $this, 'checkExistingRevision' ),
),
'Page2' => array(
- 'type' => 'text',
+ 'type' => 'title',
'name' => 'page2',
'label-message' => 'compare-page2',
'size' => '40',