r15826 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r15825‎ | r15826 | r15827 >
Date:08:05, 26 July 2006
Author:tstarling
Status:old
Tags:
Comment:
Support command line entry points
Modified paths:
  • /trunk/phase3/StartProfiler.php (modified) (history)

Diff [purge]

Index: trunk/phase3/StartProfiler.php
@@ -1,19 +1,19 @@
22 <?php
33
4 -require_once( './includes/ProfilerStub.php' );
 4+require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
55
66 /**
77 * To use a profiler, delete the line above and add something like this:
88 *
9 - * require_once( './includes/Profiler.php' );
 9+ * require_once( dirname(__FILE__).'/includes/Profiler.php' );
1010 * $wgProfiler = new Profiler;
1111 *
1212 * Or for a sampling profiler:
1313 * if ( !mt_rand( 0, 100 ) ) {
14 - * require_once( './includes/Profiler.php' );
 14+ * require_once( dirname(__FILE__).'/includes/Profiler.php' );
1515 * $wgProfiler = new Profiler;
1616 * } else {
17 - * require_once( './includes/ProfilerStub.php' );
 17+ * require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );
1818 * }
1919 *
2020 * Configuration of the profiler output can be done in LocalSettings.php