r61121 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61120‎ | r61121 | r61122 >
Date:07:18, 16 January 2010
Author:aaron
Status:ok
Tags:
Comment:
Made noSuchSectionPage() use mTitle
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -2046,14 +2046,14 @@
20472047 * they have attempted to edit a nonexistent section.
20482048 */
20492049 function noSuchSectionPage() {
2050 - global $wgOut, $wgTitle;
 2050+ global $wgOut;
20512051
20522052 $wgOut->setPageTitle( wfMsg( 'nosuchsectiontitle' ) );
20532053 $wgOut->setRobotPolicy( 'noindex,nofollow' );
20542054 $wgOut->setArticleRelated( false );
20552055
20562056 $wgOut->addWikiMsg( 'nosuchsectiontext', $this->section );
2057 - $wgOut->returnToMain( false, $wgTitle );
 2057+ $wgOut->returnToMain( false, $this->mTitle );
20582058 }
20592059
20602060 /**

Status & tagging log