Using the function Title::isSubpage instead.
authorRotem Liss <rotem@users.mediawiki.org>
Sat, 1 Sep 2007 17:39:28 +0000 (17:39 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sat, 1 Sep 2007 17:39:28 +0000 (17:39 +0000)
includes/WatchlistEditor.php

index 439a4e5..5258204 100644 (file)
@@ -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 '<li>'