jenkins-bot has submitted this change and it was merged.

Change subject: Use 'self' in a couple of places, protects from refactors
......................................................................


Use 'self' in a couple of places, protects from refactors

Change-Id: Ibcf26362db63f1f4d16546bf0a6db8d97b22a97f
---
M includes/MassIndexJob.php
M includes/OtherIndexJob.php
2 files changed, 2 insertions(+), 2 deletions(-)

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



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: merged
Gerrit-Change-Id: Ibcf26362db63f1f4d16546bf0a6db8d97b22a97f
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
Gerrit-Reviewer: Manybubbles <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to