Matthias Mullie has uploaded a new change for review. https://gerrit.wikimedia.org/r/61359
Change subject: Move check to detect if AFT is enabled down (otherwise class was not yet loaded) ...................................................................... Move check to detect if AFT is enabled down (otherwise class was not yet loaded) Change-Id: I77b3e39b0ffc21dbd48a76e09c9ef46f1a3580e5 --- M populateAFStatistics.php 1 file changed, 4 insertions(+), 4 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ArticleFeedback refs/changes/59/61359/1 diff --git a/populateAFStatistics.php b/populateAFStatistics.php index d601a6d..0a4425b 100644 --- a/populateAFStatistics.php +++ b/populateAFStatistics.php @@ -6,10 +6,6 @@ } require_once( "$IP/maintenance/Maintenance.php" ); -if ( !class_exists( 'SpecialArticleFeedback' ) ) { - die( "The ArticleFeedback extension must be loaded to use this maintenance script.\n" ); -} - class PopulateAFStatistics extends Maintenance { /** * The number of records to attempt to insert at any given time. @@ -149,6 +145,10 @@ } public function execute() { + if ( !class_exists( 'SpecialArticleFeedback' ) ) { + die( "The ArticleFeedback extension must be loaded to use this maintenance script.\n" ); + } + // finish bootstrapping the script $this->bootstrap(); -- To view, visit https://gerrit.wikimedia.org/r/61359 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I77b3e39b0ffc21dbd48a76e09c9ef46f1a3580e5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ArticleFeedback Gerrit-Branch: master Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits