From: Aaron Schulz Date: Sun, 5 Apr 2009 01:10:52 +0000 (+0000) Subject: profiling fix X-Git-Tag: 1.31.0-rc.0~42226 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=41d6528eab0c6df1e219a58327b267a8eda1f306;p=lhc%2Fweb%2Fwiklou.git profiling fix --- diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 8908c442f1..02f29cf6f1 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -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 );