jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/326723 )

Change subject: Make maintenance scripts use $this->requireExtension()
......................................................................


Make maintenance scripts use $this->requireExtension()

Bug: T152139
Change-Id: I9c3a6a186275b6554a761de8548bc16f8938d488
---
M maintenance/addMissingLoggingEntries.php
M maintenance/purgeOldLogIPData.php
2 files changed, 8 insertions(+), 0 deletions(-)

Approvals:
  Reedy: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/addMissingLoggingEntries.php 
b/maintenance/addMissingLoggingEntries.php
index 23da223..3c8391d 100644
--- a/maintenance/addMissingLoggingEntries.php
+++ b/maintenance/addMissingLoggingEntries.php
@@ -10,6 +10,12 @@
  * Adds rows missing per https://bugzilla.wikimedia.org/show_bug.cgi?id=52919
  */
 class AddMissingLoggingEntries extends Maintenance {
+       public function __construct() {
+               parent::__construct();
+
+               $this->requireExtension( 'AbuseFilter' );
+       }
+
        public function execute() {
                $logParams = array();
                $afhRows = array();
diff --git a/maintenance/purgeOldLogIPData.php 
b/maintenance/purgeOldLogIPData.php
index 055bab3..c2e310c 100644
--- a/maintenance/purgeOldLogIPData.php
+++ b/maintenance/purgeOldLogIPData.php
@@ -12,6 +12,8 @@
                parent::__construct();
                $this->mDescription = 'Purge old IP Address data from 
AbuseFilter logs';
                $this->setBatchSize( 200 );
+
+               $this->requireExtension( 'AbuseFilter' );
        }
 
        public function execute() {

-- 
To view, visit https://gerrit.wikimedia.org/r/326723
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9c3a6a186275b6554a761de8548bc16f8938d488
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Pppery <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to