return false;
}
- function execute( $par ) {
+ public function execute( $par ) {
$this->initServices();
$this->setHeaders();
if ( !$this->getConfig()->get( 'MiserMode' ) ) {
$fields += array(
'namespace' => array(
- 'class' => 'HTMLSelectNamespace',
+ 'type' => 'namespaceselect',
'name' => 'namespace',
'label-message' => 'linksearch-ns',
'default' => $namespace,
$hiddenFields = array(
'title' => $this->getPageTitle()->getPrefixedDBkey(),
);
- $htmlForm = HTMLForm::factory( 'inline', $fields, $this->getContext() );
+ $htmlForm = HTMLForm::factory( 'ooui', $fields, $this->getContext() );
$htmlForm->addHiddenFields( $hiddenFields );
$htmlForm->setSubmitTextMsg( 'linksearch-ok' );
$htmlForm->setWrapperLegendMsg( 'linksearch' );
return $params;
}
- function getQueryInfo() {
+ public function getQueryInfo() {
$dbr = wfGetDB( DB_SLAVE );
// strip everything past first wildcard, so that
// index-based-only lookup would be done