MediaWiki r10329 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r10328‎ | r10329 (on ViewVC)‎ | r10330 >
Date:19:35, 31 July 2005
Author:nikerabbit
Status:old
Tags:
Comment:
Removed some nonsense and fixed ugly HTML
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/SpecialWatchlist.php
@@ -271,12 +271,12 @@
272272 $s = $sk->makeKnownLink(
273273 $wgContLang->specialPage( 'Watchlist' ),
274274 (0 == $hideOwn) ? wfMsgHtml( 'wlhide' ) : wfMsgHtml( 'wlshow' ),
275 - wfArrayToCGI( array('hideOwn' => $wgLang->formatNum( 1-$hideOwn )), $nondefaults ) );
 275+ wfArrayToCGI( array('hideOwn' => 1-$hideOwn ), $nondefaults ) );
276276
277277 $wgOut->addHTML( wfMsgHtml( "wlhideshowown", $s ) );
278278
279279 if ( $numRows == 0 ) {
280 - $wgOut->addWikitext( "<br />\n" . wfMsg( 'watchnochange' ), false );
 280+ $wgOut->addWikitext( "<br />" . wfMsg( 'watchnochange' ), false );
281281 $wgOut->addHTML( "</p>\n" );
282282 return;
283283 }
@@ -342,8 +342,7 @@
343343 return $s;
344344 }
345345
346 -function wlCutoffLinks( $days, $page = 'Watchlist', $options = array() )
347 -{
 346+function wlCutoffLinks( $days, $page = 'Watchlist', $options = array() ) {
348347 $hours = array( 1, 2, 6, 12 );
349348 $days = array( 1, 3, 7 );
350349 $cl = '';

Status & tagging log

  • 01:58, 13 October 2010 ^demon (Talk | contribs) changed the status of r10329 [removed: new added: old]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox