Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -528,10 +528,10 @@ |
529 | 529 | # from request values or be specified in "sub page" form. The plot |
530 | 530 | # thickens, because $wgTitle is altered for special pages, so doesn't |
531 | 531 | # contain the original alias-with-subpage. |
532 | | - $title = Title::newFromText( $wgRequest->getText( 'title' ) ); |
533 | | - if( $title instanceof Title && $title->getNamespace() == NS_SPECIAL ) { |
| 532 | + $origTitle = Title::newFromText( $wgRequest->getText( 'title' ) ); |
| 533 | + if( $origTitle instanceof Title && $origTitle->getNamespace() == NS_SPECIAL ) { |
534 | 534 | list( $spName, $spPar ) = |
535 | | - SpecialPage::resolveAliasWithSubpage( $title->getText() ); |
| 535 | + SpecialPage::resolveAliasWithSubpage( $origTitle->getText() ); |
536 | 536 | $active = $spName == 'Contributions' |
537 | 537 | && ( ( $spPar && $spPar == $this->username ) |
538 | 538 | || $wgRequest->getText( 'target' ) == $this->username ); |