X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMediaWiki.php;h=f5a954dc8d6f81e6de011db0415f860f2807979a;hb=a67a4b10871a11fcbf20d2ea671d2e80202942a5;hp=267b589ae8d9b595ffcd9c9e5179ebe7c122108b;hpb=d8d274aa3581000c2dc1b6c2fae823caff6f62d0;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'],