r3007 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r3006‎ | r3007 | r3008 >
Date:14:20, 7 April 2004
Author:gabrielwicke
Status:old
Tags:
Comment:
'' instead of '-' to disable nav items
Modified paths:
  • /trunk/phase3/includes/Skin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Skin.php
@@ -433,7 +433,7 @@
434434 $action = $wgRequest->getText( 'action' );
435435
436436 $s = $this->printableLink();
437 - if ( wfMsg ( "disclaimers" ) != "-" ) $s .= " | " . $this->makeKnownLink( wfMsg( "disclaimerpage" ), wfMsg( "disclaimers" ) ) ;
 437+ if ( wfMsg ( "disclaimers" ) != "" ) $s .= " | " . $this->makeKnownLink( wfMsg( "disclaimerpage" ), wfMsg( "disclaimers" ) ) ;
438438
439439 if ( $wgOut->isArticleRelated() ) {
440440 if ( $wgTitle->getNamespace() == Namespace::getImage() ) {
@@ -752,7 +752,7 @@
753753
754754 }
755755 // only show watchlist link if logged in
756 - if ( wfMsg ( "currentevents" ) != "-" ) $s .= $sep . $this->makeKnownLink( wfMsg( "currentevents" ), "" ) ;
 756+ if ( wfMsg ( "currentevents" ) != "" ) $s .= $sep . $this->makeKnownLink( wfMsg( "currentevents" ), "" ) ;
757757 $s .= "\n<br /><hr class='sep' />";
758758 $articleExists = $wgTitle->getArticleId();
759759 if ( $wgOut->isArticle() || $action =="edit" || $action =="history" || $wpPreview) {

Status & tagging log