$opts->add( 'invert', false );
$this->customFilters = array();
- wfRunHooks( 'SpecialNewPagesFilters', array( $this, &$this->customFilters ) );
+ Hooks::run( 'SpecialNewPagesFilters', array( $this, &$this->customFilters ) );
foreach ( $this->customFilters as $key => $params ) {
$opts->add( $key, $params['default'] );
}
protected function form() {
$out = $this->getOutput();
+ $out->addModules( 'mediawiki.userSuggest' );
+
// Consume values
$this->opts->consumeValue( 'offset' ); // don't carry offset, DWIW
$namespace = $this->opts->consumeValue( 'namespace' );
),
'nsinvert' => array(
'type' => 'check',
- 'name' => 'nsinvert',
+ 'name' => 'invert',
'label-message' => 'invert',
'default' => $nsinvert,
'tooltip' => $this->msg( 'tooltip-invert' )->text(),
'tagFilter' => array(
'type' => 'tagfilter',
'name' => 'tagfilter',
- 'label-raw' => wfMessage( 'tag-filter' )->parse(),
+ 'label-raw' => $this->msg( 'tag-filter' )->parse(),
'default' => $tagFilterVal,
),
'username' => array(
);
$join_conds = array( 'page' => array( 'INNER JOIN', 'page_id=rc_cur_id' ) );
- wfRunHooks( 'SpecialNewpagesConditions',
+ Hooks::run( 'SpecialNewpagesConditions',
array( &$this, $this->opts, &$conds, &$tables, &$fields, &$join_conds ) );
$options = array();