From 30e187ebb4bf46170ee5413ba23d74620bb84fe2 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 6 Feb 2005 14:03:49 +0000 Subject: [PATCH] Switch some messages to wikitext, html cleanup --- includes/SpecialWatchlist.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 0bcdeb4435..8b9f7dbca0 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -29,7 +29,7 @@ function wfSpecialWatchlist() { $uid = $wgUser->getID(); if( $uid == 0 ) { - $wgOut->addHTML( wfMsg( 'nowatchlist' ) ); + $wgOut->addWikiText( wfMsg( 'nowatchlist' ) ); return; } @@ -39,14 +39,15 @@ function wfSpecialWatchlist() { $remove = $wgRequest->getVal( 'remove' ); $id = $wgRequest->getArray( 'id' ); - $wgOut->addHTML( wfMsg( 'email_notification_infotext' ) ); + $wgOut->addWikiText( wfMsg( 'email_notification_infotext' ) ); if( $wgRequest->getVal( 'reset' ) == 'all' ) { $wgUser->clearAllNotifications( $uid ); } if(($action == 'submit') && isset($remove) && is_array($id)) { - $wgOut->addHTML( wfMsg( 'removingchecked' ) ); + $wgOut->addWikiText( wfMsg( 'removingchecked' ) ); + $wgOut->addHTML( '

' ); foreach($id as $one) { $t = Title::newFromURL( $one ); if($t->getDBkey() != '') { @@ -60,14 +61,14 @@ function wfSpecialWatchlist() { $wgOut->addHTML( "
\n" . wfMsg( 'iteminvalidname', htmlspecialchars($one) ) ); } } - $wgOut->addHTML( "done.\n

" ); + $wgOut->addHTML( "done.

\n" ); } if ( $wgUseWatchlistCache ) { $memckey = "$wgDBname:watchlist:id:" . $wgUser->getId(); $cache_s = @$wgMemc->get( $memckey ); if( $cache_s ){ - $wgOut->addHTML( wfMsg('wlsaved') ); + $wgOut->addWikiText( wfMsg('wlsaved') ); $wgOut->addHTML( $cache_s ); return; } @@ -86,7 +87,7 @@ function wfSpecialWatchlist() { $nitems = $s->n; if($nitems == 0) { - $wgOut->addHTML( wfMsg( 'nowatchlist' ) ); + $wgOut->addWikiText( wfMsg( 'nowatchlist' ) ); return; } @@ -118,7 +119,7 @@ function wfSpecialWatchlist() { } if(isset($_REQUEST['magic'])) { - $wgOut->addHTML( wfMsg( 'watchlistcontains', $wgLang->formatNum( $nitems ) ) . + $wgOut->addWikiText( wfMsg( 'watchlistcontains', $wgLang->formatNum( $nitems ) ) . '

' . wfMsg( 'watcheditlist' ) . "

\n" ); $wgOut->addHTML( '