If passing a callback in an array in $wgExtensionFunctions, fix the profile name...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 6 May 2009 20:02:01 +0000 (20:02 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 6 May 2009 20:02:01 +0000 (20:02 +0000)
includes/Setup.php

index 98b12c9..f7119bb 100644 (file)
@@ -308,6 +308,8 @@ foreach ( $wgExtensionFunctions as $func ) {
        # Allow closures in PHP 5.3+
        if ( is_object( $func ) && $func instanceof Closure )
                $profName = $fname.'-extensions-closure';
+       elseif( is_array( $func ) )
+               $profName = $fname.'-extensions-'.implode( '::', $func );
        else
                $profName = $fname.'-extensions-'.strval( $func );