r23113 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23112‎ | r23113 | r23114 >
Date:07:28, 20 June 2007
Author:robchurch
Status:old
Tags:
Comment:
(bug 9328) Use "revision-info-current" message in place of "revision-info" when viewing the current revision of a page, if available - ignored if blank or contains "-"
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)
  • /trunk/phase3/languages/messages/MessagesEn.php (modified) (history)
  • /trunk/phase3/maintenance/language/messageTypes.inc (modified) (history)
  • /trunk/phase3/maintenance/language/messages.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/language/messages.inc
@@ -526,6 +526,7 @@
527527 'currentrev',
528528 'revisionasof',
529529 'revision-info',
 530+ 'revision-info-current',
530531 'revision-nav',
531532 'previousrevision',
532533 'nextrevision',
Index: trunk/phase3/maintenance/language/messageTypes.inc
@@ -86,6 +86,7 @@
8787 'pubmedurl',
8888 'randompage-url',
8989 'recentchanges-url',
 90+ 'revision-info-current',
9091 'revision-nav',
9192 'rfcurl',
9293 'shareddescriptionfollows',
Index: trunk/phase3/includes/Article.php
@@ -2424,7 +2424,12 @@
24252425 $userlinks = $sk->userLink( $revision->getUser(), $revision->getUserText() )
24262426 . $sk->userToolLinks( $revision->getUser(), $revision->getUserText() );
24272427
2428 - $r = "\n\t\t\t\t<div id=\"mw-revision-info\">" . wfMsg( 'revision-info', $td, $userlinks ) . "</div>\n" .
 2428+ $m = wfMsg( 'revision-info-current' );
 2429+ $infomsg = $current && !wfEmptyMsg( 'revision-info-current', $m ) && $m != '-'
 2430+ ? 'revision-info-current'
 2431+ : 'revision-info';
 2432+
 2433+ $r = "\n\t\t\t\t<div id=\"mw-{$infomsg}\">" . wfMsg( $infomsg, $td, $userlinks ) . "</div>\n" .
24292434 "\n\t\t\t\t<div id=\"mw-revision-nav\">" . wfMsg( 'revision-nav', $prevdiff, $prevlink, $lnk, $curdiff, $nextlink, $nextdiff ) . "</div>\n\t\t\t";
24302435 $wgOut->setSubtitle( $r );
24312436 }
Index: trunk/phase3/languages/messages/MessagesEn.php
@@ -1072,6 +1072,7 @@
10731073 'currentrev' => 'Current revision',
10741074 'revisionasof' => 'Revision as of $1',
10751075 'revision-info' => 'Revision as of $1 by $2',
 1076+'revision-info-current' => 'Revision as of $1 by $2 (current!)',
10761077 'revision-nav' => '($1) $2 | $3 ($4) | $5 ($6)', # don't translate or duplicate this message to other languages
10771078 'previousrevision' => '←Older revision',
10781079 'nextrevision' => 'Newer revision→',
Index: trunk/phase3/RELEASE-NOTES
@@ -89,6 +89,8 @@
9090 * Kurdish interface latin/arabic writing system with transliteration
9191 * Support wiki text in all query page headers
9292 * Add 'Orphanedpages' as an alias to Special:Lonelypages
 93+* (bug 9328) Use "revision-info-current" message in place of "revision-info"
 94+ when viewing the current revision of a page, if available
9395
9496 == Bugfixes since 1.10 ==
9597

Follow-up revisions

RevisionCommit summaryAuthorDate
r23120Merged revisions 23103-23119 via svnmerge from...david08:43, 20 June 2007

Status & tagging log