* (bug 19355) Added .xhtml, .xht to upload file extension blacklist
* (bug 19287) Workaround for lag on history page in Firefox 3.5
* (bug 19564) Updated docs/hooks.txt
+* (bug 18751) Fix for buggage in profiling setup for some extensions on PHP 5.1
== API changes in 1.16 ==
# any necessary initialisation in the fully initialised environment
foreach ( $wgExtensionFunctions as $func ) {
# Allow closures in PHP 5.3+
- if ( is_object( $func ) && $func instanceof Closure )
+ if ( is_object( $func ) && $func instanceof Closure ) {
$profName = $fname.'-extensions-closure';
- elseif( is_array( $func ) )
- $profName = $fname.'-extensions-'.implode( '::', $func );
- else
+ } elseif( is_array( $func ) ) {
+ if ( is_object( $func[0] ) )
+ $profName = $fname.'-extensions-'.get_class( $func[0] ).'::'.$func[1];
+ else
+ $profName = $fname.'-extensions-'.implode( '::', $func );
+ } else {
$profName = $fname.'-extensions-'.strval( $func );
+ }
wfProfileIn( $profName );
call_user_func( $func );