From 5276838fbbac621dcfb674552a7fae725466b73b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 17 May 2008 23:39:20 +0000 Subject: [PATCH] Respect $wgShowUpdatedMarker --- includes/SpecialWatchlist.php | 6 +++--- includes/User.php | 8 +++----- 2 files changed, 6 insertions(+), 8 deletions(-) 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( '