Switched hook profiling to use scopedProfileIn
[lhc/web/wiklou.git] / includes / profiler / ProfilerStub.php
index b400601..2db06e4 100644 (file)
@@ -34,7 +34,9 @@ class ProfilerStub extends Profiler {
        }
 
        public function scopedProfileIn( $section ) {
-               return null;
+               return new ScopedCallback( function() {
+                       // no-op
+               } );
        }
 
        public function getFunctionStats() {