From 9d0f0119c6fd98ae7736c8b11a38fed989b3209d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 1 Dec 2014 10:36:48 -0800 Subject: [PATCH] Removed bogus argument in frame profiling method * Caused "Warning: xhprof_frame_end() expects exactly 0 parameters, 1 given in includes/libs/ScopedCallback.php on line 70" Change-Id: I1ab5a973a185738cae97de4cfdc3cca78598d35e --- includes/profiler/ProfilerXhprof.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/profiler/ProfilerXhprof.php b/includes/profiler/ProfilerXhprof.php index 00209e2e3e..88196db130 100644 --- a/includes/profiler/ProfilerXhprof.php +++ b/includes/profiler/ProfilerXhprof.php @@ -131,7 +131,7 @@ class ProfilerXhprof extends Profiler { if ( $exists ) { xhprof_frame_begin( $section ); return new ScopedCallback( function() use ( $section ) { - xhprof_frame_end( $section ); + xhprof_frame_end(); } ); } -- 2.20.1