Open JeroenDeDauw opened 9 years ago
$parser->setFunctionHook( 'createPage', function( $parser ) { return createPageIfNotExisting( func_get_args() ); } ); function createPageIfNotExisting( array $rawParams ) {
What is the anon function for? Seems to add 0 value.
Indeed. This was copied and simplified from elsewhere. Now it is so simple that there is no point anymore ;-)
What is the anon function for? Seems to add 0 value.