Removed some nonsense and fixed ugly HTML
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 31 Jul 2005 19:35:52 +0000 (19:35 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 31 Jul 2005 19:35:52 +0000 (19:35 +0000)
includes/SpecialWatchlist.php

index 56f48fc..d254b33 100644 (file)
@@ -271,12 +271,12 @@ function wfSpecialWatchlist( $par ) {
        $s = $sk->makeKnownLink(
                $wgContLang->specialPage( 'Watchlist' ),
                (0 == $hideOwn) ? wfMsgHtml( 'wlhide' ) : wfMsgHtml( 'wlshow' ),
-               wfArrayToCGI( array('hideOwn' => $wgLang->formatNum( 1-$hideOwn )), $nondefaults ) );
+               wfArrayToCGI( array('hideOwn' => 1-$hideOwn ), $nondefaults ) );
 
        $wgOut->addHTML( wfMsgHtml( "wlhideshowown", $s ) );
        
        if ( $numRows == 0 ) {
-               $wgOut->addWikitext( "<br />\n" . wfMsg( 'watchnochange' ), false );
+               $wgOut->addWikitext( "<br />" . wfMsg( 'watchnochange' ), false );
                $wgOut->addHTML( "</p>\n" );
                return;
        }
@@ -342,8 +342,7 @@ function wlDaysLink( $d, $page, $options = array() ) {
        return $s;
 }
 
-function wlCutoffLinks( $days, $page = 'Watchlist', $options = array() )
-{
+function wlCutoffLinks( $days, $page = 'Watchlist', $options = array() ) {
        $hours = array( 1, 2, 6, 12 );
        $days = array( 1, 3, 7 );
        $cl = '';