r47355 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47354‎ | r47355 | r47356 >
Date:03:32, 17 February 2009
Author:tstarling
Status:ok
Tags:
Comment:
Support early loading of the Profiler class from a different directory (live patch)
Modified paths:
  • /trunk/phase3/includes/ProfilerSimple.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ProfilerSimple.php
@@ -4,7 +4,9 @@
55 * @ingroup Profiler
66 */
77
8 -require_once(dirname(__FILE__).'/Profiler.php');
 8+if ( !class_exists( 'Profiler' ) ) {
 9+ require_once(dirname(__FILE__).'/Profiler.php');
 10+}
911
1012 /**
1113 * Simple profiler base class.

Status & tagging log