Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/94281
Change subject: Main Page might not exist
......................................................................
Main Page might not exist
Change-Id: I6b034b3ebb9978749e91f5f3bd6e862bdd2acf91
---
M includes/CirrusSearchUpdatePagesJob.php
1 file changed, 3 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch
refs/changes/81/94281/1
diff --git a/includes/CirrusSearchUpdatePagesJob.php
b/includes/CirrusSearchUpdatePagesJob.php
index 393c281..356d365 100644
--- a/includes/CirrusSearchUpdatePagesJob.php
+++ b/includes/CirrusSearchUpdatePagesJob.php
@@ -20,15 +20,14 @@
*/
class CirrusSearchUpdatePagesJob extends Job {
public static function build( $revisions, $checkFreshness ) {
- // We don't have a "title" for this job so we use the Main Page
because it exists.
- $title = Title::newFromText( 'Main Page' );
-
// Strip $revisions down to page ids so we don't put a ton of
stuff in the job queue.
$pageIds = array();
foreach ( $revisions as $rev ) {
$pageIds[] = $rev[ 'id' ];
}
- return new CirrusSearchUpdatePagesJob( $title, array(
+
+ // We don't have a "title" for this job so we use the Main Page
because it exists.
+ return new CirrusSearchUpdatePagesJob( Title::newMainPage(),
array(
'pageIds' => $pageIds,
'checkFreshness' => $checkFreshness,
) );
--
To view, visit https://gerrit.wikimedia.org/r/94281
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6b034b3ebb9978749e91f5f3bd6e862bdd2acf91
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