From f8085b7df0011824868d7a5e0f05a04c53f052ab Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 9 Apr 2009 10:28:55 +0000 Subject: [PATCH] fix variable collision introduced in r49324 --- includes/SkinTemplate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index a4e5e2e560..7a180d88f5 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -528,10 +528,10 @@ class SkinTemplate extends Skin { # from request values or be specified in "sub page" form. The plot # thickens, because $wgTitle is altered for special pages, so doesn't # contain the original alias-with-subpage. - $title = Title::newFromText( $wgRequest->getText( 'title' ) ); - if( $title instanceof Title && $title->getNamespace() == NS_SPECIAL ) { + $origTitle = Title::newFromText( $wgRequest->getText( 'title' ) ); + if( $origTitle instanceof Title && $origTitle->getNamespace() == NS_SPECIAL ) { list( $spName, $spPar ) = - SpecialPage::resolveAliasWithSubpage( $title->getText() ); + SpecialPage::resolveAliasWithSubpage( $origTitle->getText() ); $active = $spName == 'Contributions' && ( ( $spPar && $spPar == $this->username ) || $wgRequest->getText( 'target' ) == $this->username ); -- 2.20.1