r25674 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25673‎ | r25674 | r25675 >
Date:21:24, 8 September 2007
Author:aaron
Status:old
Tags:
Comment:
*Message tweaks
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -502,11 +502,11 @@
503503 * @param Row $trev, flagged revision row
504504 * @param array $flags
505505 * @param int $rev_since, revisions since review
506 - * @param bool $cur, are we referring to the visible revision?
 506+ * @param bool $stable, are we referring to the stable revision?
507507 * @returns string
508508 * Generates a review box using a table using addTagRatings()
509509 */
510 - public function prettyRatingBox( $tfrev, $flags, $revs_since, $cur=true ) {
 510+ public function prettyRatingBox( $tfrev, $flags, $revs_since, $stable=true ) {
511511 global $wgLang;
512512 # Get quality level
513513 $quality = self::isQuality( $flags );
@@ -520,13 +520,15 @@
521521 else
522522 $tagClass = 'flaggedrevs_box1';
523523 // Construct some tagging
524 - $msg = $cur ? 'revreview-' : 'revreview-newest-';
 524+ $msg = $stable ? 'revreview-' : 'revreview-newest-';
525525 $msg .= $quality ? 'quality' : 'basic';
 526+ $msg2 = $stable ? '' : ' '.wfMsg('revreview-oldrating');
526527
527528 $box = ' <a id="mw-revisiontoggle" style="display:none;" href="javascript:toggleRevRatings()">' .
528529 wfMsg('revreview-toggle') . '</a>';
529 - $box .= '<span id="mw-revisionratings">' .
 530+ $box .= '<span id="mw-revisionratings">' .
530531 wfMsgExt($msg, array('parseinline'), $tfrev->fr_rev_id, $time, $revs_since) .
 532+ $msg2 .
531533 self::addTagRatings( $flags, true, "{$tagClass}a" ) .
532534 '</span>';
533535
Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php
@@ -18,7 +18,7 @@
1919 'revreview-edit' => 'Edit draft',
2020 'revreview-source' => 'draft source',
2121 'revreview-stable' => 'Stable',
22 - 'revreview-oldrating' => 'It was rated as:',
 22+ 'revreview-oldrating' => 'It was rated:',
2323 'revreview-noflagged' => 'There are no reviewed revisions of this page, so it may \'\'\'not\'\'\' have been
2424 [[Help:Article validation|checked]] for quality.',
2525

Status & tagging log