From: Aaron Schulz Date: Sat, 17 May 2008 23:39:20 +0000 (+0000) Subject: Respect $wgShowUpdatedMarker X-Git-Tag: 1.31.0-rc.0~47562 X-Git-Url: http://git.cyclocoop.org//%27http:/code.google.com/p/ie7-js//%27?a=commitdiff_plain;h=5276838fbbac621dcfb674552a7fae725466b73b;p=lhc%2Fweb%2Fwiklou.git Respect $wgShowUpdatedMarker --- diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 94832f8c95..d97bbaa98c 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -45,7 +45,7 @@ function wfSpecialWatchlist( $par ) { } $uid = $wgUser->getId(); - if( $wgEnotifWatchlist && $wgRequest->getVal( 'reset' ) && $wgRequest->wasPosted() ) { + if( ($wgEnotifWatchlist || $wgShowUpdatedMarker) && $wgRequest->getVal( 'reset' ) && $wgRequest->wasPosted() ) { $wgUser->clearAllNotifications( $uid ); $wgOut->redirect( $specialTitle->getFullUrl() ); return; @@ -154,7 +154,7 @@ function wfSpecialWatchlist( $par ) { if( $wgUser->getOption( 'enotifwatchlistpages' ) && $wgEnotifWatchlist) { $header .= wfMsg( 'wlheader-enotif' ) . "\n"; } - if ( $wgEnotifWatchlist && $wgShowUpdatedMarker ) { + if ( $wgEnotifWatchlist || $wgShowUpdatedMarker ) { $header .= wfMsg( 'wlheader-showupdated' ) . "\n"; } @@ -175,7 +175,7 @@ function wfSpecialWatchlist( $par ) { if( ( $lag = $dbr->getLag() ) > 0 ) $wgOut->showLagWarning( $lag ); - if ( $wgEnotifWatchlist && $wgShowUpdatedMarker ) { + if ( $wgEnotifWatchlist || $wgShowUpdatedMarker ) { $wgOut->addHTML( '