Fix wfCheckLimits was deprecated in MediaWiki 1.24