initialize Profiler instance singleton with ProfilerStub if 'bogus' is detected,...
authorDomas Mituzas <midom@users.mediawiki.org>
Sun, 15 May 2011 11:16:59 +0000 (11:16 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Sun, 15 May 2011 11:16:59 +0000 (11:16 +0000)
includes/profiler/Profiler.php

index 4ad0d2a..db5db52 100644 (file)
@@ -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;
                        }
                        
                }