From 41d6528eab0c6df1e219a58327b267a8eda1f306 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 5 Apr 2009 01:10:52 +0000 Subject: [PATCH] profiling fix --- includes/parser/Parser.php | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- 2.20.1