From 998f036bec0d4c102c237c9fe8ef35760856012a Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 6 May 2009 20:02:01 +0000 Subject: [PATCH] If passing a callback in an array in $wgExtensionFunctions, fix the profile name to not have 'Setup.php-extensions-Array' --- includes/Setup.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/Setup.php b/includes/Setup.php index 98b12c955f..f7119bb2ab 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -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 ); -- 2.20.1