From cd9d2dfe3aa8fc877a7b4389598042d022b7c082 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Sun, 15 May 2011 11:16:59 +0000 Subject: [PATCH] initialize Profiler instance singleton with ProfilerStub if 'bogus' is detected, rather than failing. CBA to debug. Reviewed by Tim eating his lunch. --- includes/profiler/Profiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.20.1