mkroetzsch / AutoCreatePage

MediaWiki extension to create pages with a parser function
http://www.mediawiki.org/wiki/Extension:AutoCreatePage
GNU General Public License v2.0
6 stars 12 forks source link

Weird anon function to global function step #3

Open JeroenDeDauw opened 9 years ago

JeroenDeDauw commented 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.

mkroetzsch commented 9 years ago

Indeed. This was copied and simplified from elsewhere. Now it is so simple that there is no point anymore ;-)