From: Mark A. Hershberger Date: Sat, 22 Mar 2014 22:49:43 +0000 (-0400) Subject: Provide RequestContext from fixDoubleRedirects X-Git-Tag: 1.31.0-rc.0~16425^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=76416e2a9b047c1a5092924b7da43a8e421122f5;p=lhc%2Fweb%2Fwiklou.git 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 --- 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";