http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88153

Revision: 88153
Author:   midom
Date:     2011-05-15 11:16:59 +0000 (Sun, 15 May 2011)
Log Message:
-----------
initialize Profiler instance singleton with ProfilerStub if 'bogus' is 
detected, rather than failing. CBA to debug. Reviewed by Tim eating his lunch. 

Modified Paths:
--------------
    trunk/phase3/includes/profiler/Profiler.php

Modified: trunk/phase3/includes/profiler/Profiler.php
===================================================================
--- trunk/phase3/includes/profiler/Profiler.php 2011-05-15 11:11:24 UTC (rev 
88152)
+++ trunk/phase3/includes/profiler/Profiler.php 2011-05-15 11:16:59 UTC (rev 
88153)
@@ -68,7 +68,7 @@
                        } elseif( $wgProfiler instanceof Profiler ) {
                                self::$__instance = $wgProfiler; // back-compat
                        } else {
-                               throw new MWException( '$wgProfiler set to 
bogus value' );
+                               self::$__instance = new ProfilerStub;
                        }
                        
                }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to