From: Niklas Laxström Date: Sun, 7 May 2006 17:22:21 +0000 (+0000) Subject: * Don't change $wgTitle when special page is included X-Git-Tag: 1.31.0-rc.0~57210 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=986ca7837d531907a6b2af7d73618bedae0767a0;p=lhc%2Fweb%2Fwiklou.git * Don't change $wgTitle when special page is included --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index 6c0f2e4aad..9afba689db 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -298,11 +298,12 @@ class SpecialPage if ( $including && !$page->includable() ) { wfProfileOut( $fname ); return false; - } - if($par !== NULL) { - $wgTitle = Title::makeTitle( NS_SPECIAL, $name ); - } else { - $wgTitle = $title; + } elseif ( !$including ) { + if($par !== NULL) { + $wgTitle = Title::makeTitle( NS_SPECIAL, $name ); + } else { + $wgTitle = $title; + } } $page->including( $including );