Made noSuchSectionPage() use mTitle
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 16 Jan 2010 07:18:16 +0000 (07:18 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 16 Jan 2010 07:18:16 +0000 (07:18 +0000)
includes/EditPage.php

index db2935e..5f6d68d 100644 (file)
@@ -2046,14 +2046,14 @@ INPUTS
         * they have attempted to edit a nonexistent section.
         */
        function noSuchSectionPage() {
-               global $wgOut, $wgTitle;
+               global $wgOut;
 
                $wgOut->setPageTitle( wfMsg( 'nosuchsectiontitle' ) );
                $wgOut->setRobotPolicy( 'noindex,nofollow' );
                $wgOut->setArticleRelated( false );
 
                $wgOut->addWikiMsg( 'nosuchsectiontext', $this->section );
-               $wgOut->returnToMain( false, $wgTitle );
+               $wgOut->returnToMain( false, $this->mTitle );
        }
 
        /**