X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialChangeContentModel.php;h=b37c47556f7fd561a4e3307b9cf32851ea386629;hb=fc7d715b4b5adedd0ae3e9e6f969c89e19d460eb;hp=ccbb2752ba1f1a1f127e5c04bdbe232aedf380d8;hpb=e6bbb03b87da14a793dd882be0d31608eba42c54;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialChangeContentModel.php b/includes/specials/SpecialChangeContentModel.php index ccbb2752ba..b37c47556f 100644 --- a/includes/specials/SpecialChangeContentModel.php +++ b/includes/specials/SpecialChangeContentModel.php @@ -191,6 +191,12 @@ class SpecialChangeContentModel extends FormSpecialPage { // Page doesn't exist, create an empty content object $newContent = ContentHandler::getForModelID( $data['model'] )->makeEmptyContent(); } + + // All other checks have passed, let's check rate limits + if ( $user->pingLimiter( 'editcontentmodel' ) ) { + throw new ThrottledError(); + } + $flags = $this->oldRevision ? EDIT_UPDATE : EDIT_NEW; $flags |= EDIT_INTERNAL; if ( $user->isAllowed( 'bot' ) ) {