dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Switched hook profiling to use scopedProfileIn
[lhc/web/wiklou.git]
/
includes
/
profiler
/
ProfilerStub.php
diff --git
a/includes/profiler/ProfilerStub.php
b/includes/profiler/ProfilerStub.php
index
b400601
..
2db06e4
100644
(file)
--- a/
includes/profiler/ProfilerStub.php
+++ b/
includes/profiler/ProfilerStub.php
@@
-34,7
+34,9
@@
class ProfilerStub extends Profiler {
}
public function scopedProfileIn( $section ) {
- return null;
+ return new ScopedCallback( function() {
+ // no-op
+ } );
}
public function getFunctionStats() {