r97581 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97580‎ | r97581 | r97582 >
Date:23:59, 19 September 2011
Author:reedy
Status:ok
Tags:
Comment:
Set missing parameter to an empty array
Modified paths:
  • /branches/wmf/1.18wmf1/StartProfiler.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/StartProfiler.php
@@ -14,26 +14,26 @@
1515 ) {*/
1616 if ( @$_SERVER['REQUEST_URI'] == '/w/index.php?title=United_States&action=submit' ) {
1717 require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleUDP.php' );
18 - $wgProfiler = new ProfilerSimpleUDP;
 18+ $wgProfiler = new ProfilerSimpleUDP( array() );
1919 $wgProfiler->setProfileID( 'bigpage' );
2020 } elseif (@defined($_REQUEST['forceprofile'])) {
2121 require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleText.php' );
22 - $wgProfiler = new ProfilerSimpleText;
 22+ $wgProfiler = new ProfilerSimpleText( array() );
2323 $wgProfiler->setProfileID( 'forced' );
2424 } elseif (@defined($_REQUEST['forcetrace'])) {
2525 require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleTrace.php' );
26 - $wgProfiler = new ProfilerSimpleTrace;
 26+ $wgProfiler = new ProfilerSimpleTrace( array() );
2727 } elseif ( strpos( @$_SERVER['REQUEST_URI'], '/w/thumb.php' ) !== false ) {
2828 require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleUDP.php' );
29 - $wgProfiler = new ProfilerSimpleUDP;
 29+ $wgProfiler = new ProfilerSimpleUDP( array() );
3030 $wgProfiler->setProfileID( 'thumb' );
3131 } elseif ( $host == 'test2.wikipedia.org' ) {
3232 require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleUDP.php' );
33 - $wgProfiler = new ProfilerSimpleUDP;
 33+ $wgProfiler = new ProfilerSimpleUDP( array() );
3434 $wgProfiler->setProfileID( 'test2' );
3535 } elseif ( !( $rand % 50 ) ) {
3636 require_once( dirname(__FILE__).'/includes/profiler/ProfilerSimpleUDP.php' );
37 - $wgProfiler = new ProfilerSimpleUDP;
 37+ $wgProfiler = new ProfilerSimpleUDP( array() );
3838 /*
3939 if ( $host == 'en.wikipedia.org' ) {
4040 $wgProfiler->setProfileID( 'enwiki' );
@@ -55,7 +55,7 @@
5656 }
5757 elseif ( defined( 'MW_FORCE_PROFILE' ) ) {
5858 require_once( dirname(__FILE__).'/includes/profiler/Profiler.php' );
59 - $wgProfiler = new Profiler;
 59+ $wgProfiler = new Profiler( array() );
6060 } else {
6161 require_once( dirname(__FILE__).'/includes/profiler/ProfilerStub.php' );
6262 }

Status & tagging log