Follow up r64851. Remove $wgOut.
authorPhilip Tzou <philip@users.mediawiki.org>
Sat, 10 Apr 2010 07:07:49 +0000 (07:07 +0000)
committerPhilip Tzou <philip@users.mediawiki.org>
Sat, 10 Apr 2010 07:07:49 +0000 (07:07 +0000)
includes/parser/Parser.php

index 6a2f29b..88bc3e5 100644 (file)
@@ -303,7 +303,7 @@ class Parser {
                 * to internalParse() which does all the real work.
                 */
 
-               global $wgUseTidy, $wgAlwaysUseTidy, $wgContLang, $wgDisableLangConversion, $wgDisableTitleConversion, $wgUser, $wgRequest, $wgOut;
+               global $wgUseTidy, $wgAlwaysUseTidy, $wgContLang, $wgDisableLangConversion, $wgDisableTitleConversion, $wgUser, $wgRequest;
                $fname = __METHOD__.'-' . wfGetCaller();
                wfProfileIn( __METHOD__ );
                wfProfileIn( $fname );
@@ -386,7 +386,7 @@ class Parser {
                        if ( $convruletitle ) {
                                $this->mOutput->setTitleText( $convruletitle );
                        } else {
-                               $wgOut->setPageTitle( $wgContLang->convert( $wgOut->getPageTitle(), true ) );
+                               $this->mOutput->setTitleText( $wgContLang->convert( $title->getPrefixedText(), true ) );
                        }
                }