profiling fix
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 5 Apr 2009 01:10:52 +0000 (01:10 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 5 Apr 2009 01:10:52 +0000 (01:10 +0000)
includes/parser/Parser.php

index 8908c44..02f29cf 100644 (file)
@@ -2808,6 +2808,8 @@ class Parser
 
                                        # Workaround for PHP bug 35229 and similar
                                        if ( !is_callable( $callback ) ) {
+                                               wfProfileOut( __METHOD__ . '-pfunc' );
+                                               wfProfileOut( __METHOD__ );
                                                throw new MWException( "Tag hook for $function is not callable\n" );
                                        }
                                        $result = call_user_func_array( $callback, $allArgs );