Merge "Provide RequestContext from fixDoubleRedirects"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 31 Mar 2014 16:21:21 +0000 (16:21 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 31 Mar 2014 16:21:21 +0000 (16:21 +0000)
1  2 
maintenance/fixDoubleRedirects.php

@@@ -3,7 -3,7 +3,7 @@@
   * Fix double redirects.
   *
   * Copyright © 2011 Ilmari Karonen <nospam@vyznev.net>
 - * http://www.mediawiki.org/
 + * https://www.mediawiki.org/
   *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
@@@ -94,6 -94,7 +94,7 @@@ class FixDoubleRedirects extends Mainte
                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";