r50984 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50983‎ | r50984 | r50985 >
Date:18:26, 25 May 2009
Author:siebrand
Status:ok
Tags:
Comment:
Pass optional parameters 2 and 3 for 'protect-expiring'
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/StablePages_body.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/UnstablePages_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/UnstablePages_body.php
@@ -64,7 +64,12 @@
6565 $stable = $this->skin->makeKnownLinkObj( $title, wfMsgHtml('unstablepages-stable'),
6666 'stable=1' );
6767 if( $row->fpc_expiry != 'infinity' && strlen($row->fpc_expiry) ) {
68 - $expiry_description = " (".wfMsgForContent( 'protect-expiring', $wgLang->timeanddate($row->fpc_expiry) ).")";
 68+ $expiry_description = " (" . wfMsgForContent(
 69+ 'protect-expiring',
 70+ $wgLang->timeanddate( $row->fpc_expiry ),
 71+ $wgLang->date( $row->fpc_expiry ),
 72+ $wgLang->time( $row->fpc_expiry )
 73+ ) . ")";
6974 } else {
7075 $expiry_description = "";
7176 }
Index: trunk/extensions/FlaggedRevs/specialpages/StablePages_body.php
@@ -75,7 +75,12 @@
7676 }
7777
7878 if( $row->fpc_expiry != 'infinity' && strlen($row->fpc_expiry) ) {
79 - $expiry_description = " (".wfMsgForContent( 'protect-expiring', $wgLang->timeanddate($row->fpc_expiry) ).")";
 79+ $expiry_description = " (" . wfMsgForContent(
 80+ 'protect-expiring',
 81+ $wgLang->timeanddate( $row->fpc_expiry ),
 82+ $wgLang->date( $row->fpc_expiry ),
 83+ $wgLang->time( $row->fpc_expiry )
 84+ ) . ")";
8085 } else {
8186 $expiry_description = "";
8287 }

Status & tagging log