From 76416e2a9b047c1a5092924b7da43a8e421122f5 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Sat, 22 Mar 2014 18:49:43 -0400 Subject: [PATCH] Provide RequestContext from fixDoubleRedirects Lots of code depends on RC having the title. I think setting it to titleA is correct here, but maybe it should be titleB. Bug: 62966 Change-Id: I875e1bf8f6d3468ea78c5a557a07cb6384965514 --- maintenance/fixDoubleRedirects.php | 1 + 1 file changed, 1 insertion(+) diff --git a/maintenance/fixDoubleRedirects.php b/maintenance/fixDoubleRedirects.php index 8ae5a5a342..be0b6833e8 100644 --- a/maintenance/fixDoubleRedirects.php +++ b/maintenance/fixDoubleRedirects.php @@ -94,6 +94,7 @@ class FixDoubleRedirects extends Maintenance { foreach ( $res as $row ) { $titleA = Title::makeTitle( $row->pa_namespace, $row->pa_title ); $titleB = Title::makeTitle( $row->pb_namespace, $row->pb_title ); + RequestContext::getMain()->setTitle( $titleA ); $processedTitles .= "* [[$titleA]]\n"; -- 2.20.1