From: Tim Starling Date: Tue, 17 Feb 2009 03:32:07 +0000 (+0000) Subject: Support early loading of the Profiler class from a different directory (live patch) X-Git-Tag: 1.31.0-rc.0~42858 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=e9ec857569057cf948c257a27b0f591f895285be;p=lhc%2Fweb%2Fwiklou.git Support early loading of the Profiler class from a different directory (live patch) --- diff --git a/includes/ProfilerSimple.php b/includes/ProfilerSimple.php index 349a7cac1f..5989061dcd 100644 --- a/includes/ProfilerSimple.php +++ b/includes/ProfilerSimple.php @@ -4,7 +4,9 @@ * @ingroup Profiler */ -require_once(dirname(__FILE__).'/Profiler.php'); +if ( !class_exists( 'Profiler' ) ) { + require_once(dirname(__FILE__).'/Profiler.php'); +} /** * Simple profiler base class.