X-Git-Url: http://git.cyclocoop.org/%27.%28%24current%20%3E%202?a=blobdiff_plain;f=includes%2Fapi%2FApiRollback.php;h=db57f7e03421edb40e270a86fc79d9783d24a6c7;hb=28aebf8e06c58a9ee99f9434e3382caf3e4c7ae7;hp=c9ff260a916c4c29c2196439302d55a758628022;hpb=14e0c6af8321f8261b539b19b91e383b5a660dc8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index c9ff260a91..db57f7e034 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -55,6 +55,11 @@ class ApiRollback extends ApiBase { } } + // @TODO: remove this hack once rollback uses POST (T88044) + $trxLimits = $this->getConfig()->get( 'TrxProfilerLimits' ); + $trxProfiler = Profiler::instance()->getTransactionProfiler(); + $trxProfiler->setExpectations( $trxLimits['POST'], __METHOD__ ); + $retval = $pageObj->doRollback( $this->getRbUser( $params ), $summary,