From 8292a848e7ffc71a3d49740a1f44913161006222 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 31 May 2011 17:18:15 +0000 Subject: [PATCH] Profiler can be constructed without param Before that patch, we could see warnings such as: Missing argument 1 for Profiler::__construct(), --- includes/profiler/Profiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index c9ac4eb7bd..13588285f4 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -42,7 +42,7 @@ class Profiler { protected $mProfileID = false; private static $__instance = null; - function __construct( $params ) { + function __construct( $params = null ) { // Push an entry for the pre-profile setup time onto the stack global $wgRequestTime; if ( !empty( $wgRequestTime ) ) { -- 2.20.1