jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Aaron Schulz: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I8374b8332a5b7a943ce89d043c6d9bdebfddb7eb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/FlaggedRevs
Gerrit-Branch: master
Gerrit-Owner: Jackmcbarn <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: Siebrand <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits