From: Domas Mituzas Date: Sun, 15 May 2011 11:16:59 +0000 (+0000) Subject: initialize Profiler instance singleton with ProfilerStub if 'bogus' is detected,... X-Git-Tag: 1.31.0-rc.0~30163 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=cd9d2dfe3aa8fc877a7b4389598042d022b7c082;p=lhc%2Fweb%2Fwiklou.git initialize Profiler instance singleton with ProfilerStub if 'bogus' is detected, rather than failing. CBA to debug. Reviewed by Tim eating his lunch. --- diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index 4ad0d2a600..db5db529fe 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -68,7 +68,7 @@ class Profiler { } elseif( $wgProfiler instanceof Profiler ) { self::$__instance = $wgProfiler; // back-compat } else { - throw new MWException( '$wgProfiler set to bogus value' ); + self::$__instance = new ProfilerStub; } }