X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMediaWiki.php;h=f5a954dc8d6f81e6de011db0415f860f2807979a;hb=d819f37fbb459549c43e15ae44a9234ae3e485e9;hp=267b589ae8d9b595ffcd9c9e5179ebe7c122108b;hpb=937fb7eedcca1af78785e8e156b7ff69b1447101;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index 267b589ae8..f5a954dc8d 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -893,8 +893,7 @@ class MediaWiki { // Loosen DB query expectations since the HTTP client is unblocked $trxProfiler = Profiler::instance()->getTransactionProfiler(); - $trxProfiler->resetExpectations(); - $trxProfiler->setExpectations( + $trxProfiler->redefineExpectations( $this->context->getRequest()->hasSafeMethod() ? $this->config->get( 'TrxProfilerLimits' )['PostSend-GET'] : $this->config->get( 'TrxProfilerLimits' )['PostSend-POST'],