From c63d3f4bebad0eaf8d60bf690c6a246b4a215bca Mon Sep 17 00:00:00 2001 From: Tom Gilder Date: Mon, 31 Jan 2005 20:45:10 +0000 Subject: [PATCH] More quotes of the single variety --- includes/SpecialVersion.php | 2 +- includes/SpecialWatchlist.php | 84 +++++++++++++++++------------------ 2 files changed, 43 insertions(+), 43 deletions(-) diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index 30f2fe1aa5..c8a330206b 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -10,7 +10,7 @@ */ function wfSpecialVersion() { global $wgUser, $wgOut, $wgVersion; - $fname = "wfSpecialVersion"; + $fname = 'wfSpecialVersion'; $prefix = wfMsg( 'special_version_prefix' ); $postfix = wfMsg( 'special_version_postfix' ); diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 234b9dfc6b..0bcdeb4435 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -8,8 +8,8 @@ /** * */ -require_once( "SpecialRecentchanges.php" ); -require_once( "WatchedItem.php" ); +require_once( 'SpecialRecentchanges.php' ); +require_once( 'WatchedItem.php' ); /** * constructor @@ -18,18 +18,18 @@ function wfSpecialWatchlist() { global $wgUser, $wgOut, $wgLang, $wgTitle, $wgMemc, $wgRequest; global $wgUseWatchlistCache, $wgWLCacheTimeout, $wgDBname; global $wgEnotif, $wgShowUpdatedMarker, $wgRCShowWatchingUsers; - $fname = "wfSpecialWatchlist"; + $fname = 'wfSpecialWatchlist'; - $wgOut->setPagetitle( wfMsg( "watchlist" ) ); - $sub = wfMsg( "watchlistsub", $wgUser->getName() ); + $wgOut->setPagetitle( wfMsg( 'watchlist' ) ); + $sub = wfMsg( 'watchlistsub', $wgUser->getName() ); $wgOut->setSubtitle( $sub ); - $wgOut->setRobotpolicy( "noindex,nofollow" ); + $wgOut->setRobotpolicy( 'noindex,nofollow' ); - $specialTitle = Title::makeTitle( NS_SPECIAL, "Watchlist" ); + $specialTitle = Title::makeTitle( NS_SPECIAL, 'Watchlist' ); $uid = $wgUser->getID(); if( $uid == 0 ) { - $wgOut->addHTML( wfMsg( "nowatchlist" ) ); + $wgOut->addHTML( wfMsg( 'nowatchlist' ) ); return; } @@ -39,25 +39,25 @@ function wfSpecialWatchlist() { $remove = $wgRequest->getVal( 'remove' ); $id = $wgRequest->getArray( 'id' ); - $wgOut->addHTML( wfMsg( "email_notification_infotext" ) ); + $wgOut->addHTML( wfMsg( 'email_notification_infotext' ) ); if( $wgRequest->getVal( 'reset' ) == 'all' ) { $wgUser->clearAllNotifications( $uid ); } - if(($action == "submit") && isset($remove) && is_array($id)) { - $wgOut->addHTML( wfMsg( "removingchecked" ) ); + if(($action == 'submit') && isset($remove) && is_array($id)) { + $wgOut->addHTML( wfMsg( 'removingchecked' ) ); foreach($id as $one) { $t = Title::newFromURL( $one ); - if($t->getDBkey() != "") { + if($t->getDBkey() != '') { $wl = WatchedItem::fromUserTitle( $wgUser, $t ); if( $wl->removeWatch() === false ) { - $wgOut->addHTML( "
\n" . wfMsg( "couldntremove", htmlspecialchars($one) ) ); + $wgOut->addHTML( "
\n" . wfMsg( 'couldntremove', htmlspecialchars($one) ) ); } else { - $wgOut->addHTML( " (" . htmlspecialchars($one) . ")" ); + $wgOut->addHTML( ' (' . htmlspecialchars($one) . ')' ); } } else { - $wgOut->addHTML( "
\n" . wfMsg( "iteminvalidname", htmlspecialchars($one) ) ); + $wgOut->addHTML( "
\n" . wfMsg( 'iteminvalidname', htmlspecialchars($one) ) ); } } $wgOut->addHTML( "done.\n

" ); @@ -67,7 +67,7 @@ function wfSpecialWatchlist() { $memckey = "$wgDBname:watchlist:id:" . $wgUser->getId(); $cache_s = @$wgMemc->get( $memckey ); if( $cache_s ){ - $wgOut->addHTML( wfMsg("wlsaved") ); + $wgOut->addHTML( wfMsg('wlsaved') ); $wgOut->addHTML( $cache_s ); return; } @@ -86,7 +86,7 @@ function wfSpecialWatchlist() { $nitems = $s->n; if($nitems == 0) { - $wgOut->addHTML( wfMsg( "nowatchlist" ) ); + $wgOut->addHTML( wfMsg( 'nowatchlist' ) ); return; } @@ -105,7 +105,7 @@ function wfSpecialWatchlist() { if ( $days <= 0 ) { $docutoff = ''; $cutoff = false; - $npages = wfMsg( "all" ); + $npages = wfMsg( 'all' ); } else { $docutoff = "AND rev_timestamp > '" . ( $cutoff = $dbr->timestamp( time() - intval( $days * 86400 ) ) ) @@ -118,11 +118,11 @@ function wfSpecialWatchlist() { } if(isset($_REQUEST['magic'])) { - $wgOut->addHTML( wfMsg( "watchlistcontains", $wgLang->formatNum( $nitems ) ) . - "

" . wfMsg( "watcheditlist" ) . "

\n" ); + $wgOut->addHTML( wfMsg( 'watchlistcontains', $wgLang->formatNum( $nitems ) ) . + '

' . wfMsg( 'watcheditlist' ) . "

\n" ); - $wgOut->addHTML( "
escapeLocalUrl( 'action=submit' ) . "' method='post'>\n" . "