r14263 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14262‎ | r14263 | r14264 >
Date:10:29, 17 May 2006
Author:nikerabbit
Status:old
Tags:
Comment:
* Do proper escaping
Modified paths:
  • /trunk/phase3/includes/SpecialRecentchanges.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialRecentchanges.php
@@ -497,9 +497,14 @@
498498 $options = $nondefaults + $defaults;
499499
500500 if( $options['from'] )
501 - $note = wfMsg( 'rcnotefrom', $wgLang->formatNum( $options['limit'] ), $wgLang->timeanddate( $options['from'], true ) );
 501+ $note = wfMsgExt( 'rcnotefrom', array( 'parseinline' ),
 502+ $wgLang->formatNum( $options['limit'] ),
 503+ $wgLang->timeanddate( $options['from'], true ) );
502504 else
503 - $note = wfMsg( 'rcnote', $wgLang->formatNum( $options['limit'] ), $wgLang->formatNum( $options['days'] ), $wgLang->timeAndDate( wfTimestampNow(), true ) );
 505+ $note = wfMsgExt( 'rcnote', array( 'parseinline' ),
 506+ $wgLang->formatNum( $options['limit'] ),
 507+ $wgLang->formatNum( $options['days'] ),
 508+ $wgLang->timeAndDate( wfTimestampNow(), true ) );
504509
505510 // limit links
506511 $options_limit = array(50, 100, 250, 500);
@@ -546,8 +551,9 @@
547552 $now = $wgLang->timeanddate( wfTimestampNow(), true );
548553 $tl = makeOptionsLink( $now, array( 'from' => wfTimestampNow()), $nondefaults );
549554
550 - $rclinks = wfMsg( 'rclinks', $cl, $dl, $hl );
551 - $rclistfrom = wfMsg( 'rclistfrom', $tl );
 555+ $rclinks = wfMsgExt( 'rclinks', array( 'parseinline', 'replaceafter'),
 556+ $cl, $dl, $hl );
 557+ $rclistfrom = wfMsgExt( 'rclistfrom', array( 'parseinline', 'replaceafter'), $tl );
552558 return "$note<br />$rclinks<br />$rclistfrom";
553559
554560 }
@@ -578,11 +584,11 @@
579585 $cb_arr = array( 'type' => 'checkbox', 'name' => 'categories_any', 'value' => "1" ) ;
580586 if ( $categories_any ) $cb_arr['checked'] = "checked" ;
581587 $catbox = "<br/>" ;
582 - $catbox .= wfMsg('rc_categories') . " ";
 588+ $catbox .= wfMsgExt('rc_categories', array('parseinline')) . " ";
583589 $catbox .= wfElement('input', array( 'type' => 'text', 'name' => 'categories', 'value' => $categories));
584590 $catbox .= " &nbsp;" ;
585591 $catbox .= wfElement('input', $cb_arr );
586 - $catbox .= wfMsg('rc_categories_any');
 592+ $catbox .= wfMsgExt('rc_categories_any', array('parseinline'));
587593 } else {
588594 $catbox = "" ;
589595 }

Status & tagging log