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
Made a new SectionProfileCallback class that extends ScopedCallback
[lhc/web/wiklou.git]
/
includes
/
profiler
/
ProfilerStub.php
diff --git
a/includes/profiler/ProfilerStub.php
b/includes/profiler/ProfilerStub.php
index
9a7ec8c
..
1d77cc0
100644
(file)
--- a/
includes/profiler/ProfilerStub.php
+++ b/
includes/profiler/ProfilerStub.php
@@
-34,9
+34,7
@@
class ProfilerStub extends Profiler {
}
public function scopedProfileIn( $section ) {
- return new ScopedCallback( function () {
- // no-op
- } );
+ return new ScopedCallback( null ); // no-op
}
public function getFunctionStats() {