mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-27 16:39:59 +00:00
Remove unneeded return from hook handlers
Change-Id: Ib38375909ee09e3d5342b6fd16194feeffbb8124
This commit is contained in:
parent
4829d17708
commit
1abc7abc43
|
@ -14,21 +14,16 @@ class InputBoxHooks {
|
|||
/**
|
||||
* Initialization
|
||||
* @param Parser $parser
|
||||
* @return true
|
||||
*/
|
||||
public static function register( Parser $parser ) {
|
||||
// Register the hook with the parser
|
||||
$parser->setHook( 'inputbox', [ 'InputBoxHooks', 'render' ] );
|
||||
|
||||
// Continue
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepend prefix to wpNewTitle if necessary
|
||||
* @param SpecialPage $special
|
||||
* @param string $subPage
|
||||
* @return true
|
||||
*/
|
||||
public static function onSpecialPageBeforeExecute( $special, $subPage ) {
|
||||
$request = $special->getRequest();
|
||||
|
@ -43,7 +38,6 @@ class InputBoxHooks {
|
|||
if ( $special->getName() === 'Search' && $searchfilter !== '' ) {
|
||||
$request->setVal( 'search', $search . ' ' . $searchfilter );
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue