Jackmcbarn has uploaded a new change for review. https://gerrit.wikimedia.org/r/169254
Change subject: Remove "temp hack" quota ...................................................................... Remove "temp hack" quota This was put in place while enwiki was trialing FlaggedRevs, which was years ago. It's no longer necessary. Change-Id: I8374b8332a5b7a943ce89d043c6d9bdebfddb7eb --- M business/PageStabilityForm.php M i18n/stabilization/en.json 2 files changed, 0 insertions(+), 13 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FlaggedRevs refs/changes/54/169254/1 diff --git a/business/PageStabilityForm.php b/business/PageStabilityForm.php index 1df9004..d24512f 100644 --- a/business/PageStabilityForm.php +++ b/business/PageStabilityForm.php @@ -401,19 +401,7 @@ } protected function reallyDoCheckParameters() { - # WMF temp hack...protection limit quota - global $wgFlaggedRevsProtectQuota; $oldConfig = $this->getOldConfig(); - if ( isset( $wgFlaggedRevsProtectQuota ) // quota exists - && $this->autoreview != '' // and we are protecting - && FRPageConfig::getProtectionLevel( $oldConfig ) == 'none' ) // unprotected - { - $dbw = wfGetDB( DB_MASTER ); - $count = $dbw->selectField( 'flaggedpage_config', 'COUNT(*)', '', __METHOD__ ); - if ( $count >= $wgFlaggedRevsProtectQuota ) { - return 'stabilize_protect_quota'; - } - } # Autoreview only when protecting currently unprotected pages $this->reviewThis = ( FRPageConfig::getProtectionLevel( $oldConfig ) == 'none' ); # Autoreview restriction => use stable diff --git a/i18n/stabilization/en.json b/i18n/stabilization/en.json index 99f78e0..04fb216 100644 --- a/i18n/stabilization/en.json +++ b/i18n/stabilization/en.json @@ -32,7 +32,6 @@ "stabilize_expiry_invalid": "Invalid expiration date.", "stabilize_expiry_old": "This expiration time has already passed.", "stabilize_denied": "Permission denied.", - "stabilize_protect_quota": "The maximum number of currently flag-protected pages has already been reached.", "stabilize-expiring": "expires $1 (UTC)", "stabilization-review": "Mark the current revision checked" } -- To view, visit https://gerrit.wikimedia.org/r/169254 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8374b8332a5b7a943ce89d043c6d9bdebfddb7eb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/FlaggedRevs Gerrit-Branch: master Gerrit-Owner: Jackmcbarn <jackmcb...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits