mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-23 22:54:02 +00:00
Merge "Make InputBoxHooks::render() non-static"
This commit is contained in:
commit
2471c32621
|
@ -48,7 +48,7 @@ class InputBoxHooks implements
|
|||
*/
|
||||
public function onParserFirstCallInit( $parser ) {
|
||||
// Register the hook with the parser
|
||||
$parser->setHook( 'inputbox', 'MediaWiki\Extension\InputBox\InputBoxHooks::render' );
|
||||
$parser->setHook( 'inputbox', [ $this, 'render' ] );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -78,7 +78,7 @@ class InputBoxHooks implements
|
|||
* @param Parser $parser
|
||||
* @return string
|
||||
*/
|
||||
public static function render( $input, $args, Parser $parser ) {
|
||||
public function render( $input, $args, Parser $parser ) {
|
||||
// Create InputBox
|
||||
$inputBox = new InputBox( $parser );
|
||||
|
||||
|
|
Loading…
Reference in a new issue