dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eced155
)
initialize Profiler instance singleton with ProfilerStub if 'bogus' is detected,...
author
Domas Mituzas
<midom@users.mediawiki.org>
Sun, 15 May 2011 11:16:59 +0000
(11:16 +0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Sun, 15 May 2011 11:16:59 +0000
(11:16 +0000)
includes/profiler/Profiler.php
patch
|
blob
|
history
diff --git
a/includes/profiler/Profiler.php
b/includes/profiler/Profiler.php
index
4ad0d2a
..
db5db52
100644
(file)
--- 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
;
}
}