Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/147172
Change subject: Use 'self' in a couple of places, protects against refactors
......................................................................
Use 'self' in a couple of places, protects against refactors
Change-Id: Ibcf26362db63f1f4d16546bf0a6db8d97b22a97f
---
M includes/MassIndexJob.php
M includes/OtherIndexJob.php
2 files changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch
refs/changes/72/147172/1
diff --git a/includes/MassIndexJob.php b/includes/MassIndexJob.php
index 3d43c4b..40b5ee8 100644
--- a/includes/MassIndexJob.php
+++ b/includes/MassIndexJob.php
@@ -32,7 +32,7 @@
}
// We don't have a "title" for this job so we use the Main Page
because it exists.
- return new MassIndexJob( Title::newMainPage(), array(
+ return new self( Title::newMainPage(), array(
'pageDBKeys' => $pageDBKeys,
'updateFlags' => $updateFlags,
) );
diff --git a/includes/OtherIndexJob.php b/includes/OtherIndexJob.php
index a54a890..55247ee 100644
--- a/includes/OtherIndexJob.php
+++ b/includes/OtherIndexJob.php
@@ -39,7 +39,7 @@
// Note that we're updating a bunch of titles but we
have to pick one to
// attach to the job so we pick the first one.
JobQueueGroup::singleton()->push(
- new OtherIndexJob( $titles[ 0 ], array(
+ new self( $titles[ 0 ], array(
'titles' => $titlesToUpdate,
'existsInLocalIndex' =>
$existsInLocalIndex,
) )
--
To view, visit https://gerrit.wikimedia.org/r/147172
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibcf26362db63f1f4d16546bf0a6db8d97b22a97f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits