r25392 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25391‎ | r25392 | r25393 >
Date:17:39, 1 September 2007
Author:rotem
Status:old
Tags:
Comment:
Using the function Title::isSubpage instead.
Modified paths:
  • /trunk/phase3/includes/WatchlistEditor.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/WatchlistEditor.php
@@ -414,7 +414,7 @@
415415 if( $title->exists() ) {
416416 $tools[] = $skin->makeKnownLinkObj( $title, wfMsgHtml( 'history_short' ), 'action=history' );
417417 }
418 - if( $title->getNamespace() == NS_USER && $title->getText() == $title->getBaseText() ) {
 418+ if( $title->getNamespace() == NS_USER && !$title->isSubpage() ) {
419419 $tools[] = $skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Contributions' ), wfMsgHtml( 'contributions' ), 'target=' . $title->getPartialUrl() );
420420 }
421421 return '<li>'

Follow-up revisions

RevisionCommit summaryAuthorDate
r25415Merged revisions 25372-25414 via svnmerge from...david21:15, 2 September 2007

Status & tagging log