From: Antoine Musso Date: Tue, 31 May 2011 17:18:15 +0000 (+0000) Subject: Profiler can be constructed without param X-Git-Tag: 1.31.0-rc.0~29827 X-Git-Url: http://git.cyclocoop.org//%22%22.url_de_base%28%29.%22/%22?a=commitdiff_plain;h=8292a848e7ffc71a3d49740a1f44913161006222;p=lhc%2Fweb%2Fwiklou.git Profiler can be constructed without param Before that patch, we could see warnings such as: Missing argument 1 for Profiler::__construct(), --- 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 ) ) {