From: Rotem Liss Date: Sat, 1 Sep 2007 17:39:28 +0000 (+0000) Subject: Using the function Title::isSubpage instead. X-Git-Tag: 1.31.0-rc.0~51566 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=71f2dd351697c23a91c85b01af0be7290698e5da;p=lhc%2Fweb%2Fwiklou.git Using the function Title::isSubpage instead. --- diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index 439a4e5c09..525820476c 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -414,7 +414,7 @@ class WatchlistEditor { if( $title->exists() ) { $tools[] = $skin->makeKnownLinkObj( $title, wfMsgHtml( 'history_short' ), 'action=history' ); } - if( $title->getNamespace() == NS_USER && $title->getText() == $title->getBaseText() ) { + if( $title->getNamespace() == NS_USER && !$title->isSubpage() ) { $tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Contributions' ), wfMsgHtml( 'contributions' ), 'target=' . $title->getPartialUrl() ); } return '
  • '