http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89218
Revision: 89218
Author: hashar
Date: 2011-05-31 17:18:15 +0000 (Tue, 31 May 2011)
Log Message:
-----------
Profiler can be constructed without param
Before that patch, we could see warnings such as:
Missing argument 1 for Profiler::__construct(),
Modified Paths:
--------------
trunk/phase3/includes/profiler/Profiler.php
Modified: trunk/phase3/includes/profiler/Profiler.php
===================================================================
--- trunk/phase3/includes/profiler/Profiler.php 2011-05-31 14:58:39 UTC (rev
89217)
+++ trunk/phase3/includes/profiler/Profiler.php 2011-05-31 17:18:15 UTC (rev
89218)
@@ -42,7 +42,7 @@
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 ) ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs