dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acc5ba6
)
If passing a callback in an array in $wgExtensionFunctions, fix the profile name...
author
Alexandre Emsenhuber
<ialex@users.mediawiki.org>
Wed, 6 May 2009 20:02:01 +0000
(20:02 +0000)
committer
Alexandre Emsenhuber
<ialex@users.mediawiki.org>
Wed, 6 May 2009 20:02:01 +0000
(20:02 +0000)
includes/Setup.php
patch
|
blob
|
history
diff --git
a/includes/Setup.php
b/includes/Setup.php
index
98b12c9
..
f7119bb
100644
(file)
--- 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 );