r76933 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76932‎ | r76933 | r76934 >
Date:01:24, 18 November 2010
Author:aaron
Status:deferred
Tags:
Comment:
Made revreview-reject-text-revto more flexible per-wiki
Modified paths:
  • /trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php
@@ -257,7 +257,7 @@
258258
259259 'revreview-reject-header' => 'Reject changes for $1',
260260 'revreview-reject-text-list' => 'By completing this action, you will be \'\'\'rejecting\'\'\' the following changes:',
261 - 'revreview-reject-text-revto' => 'This will revert the page back to the [$1 version as of $2].',
 261+ 'revreview-reject-text-revto' => 'This will revert the page back to the [{{fullurl:$1|oldid=$2}} version as of $3].',
262262 'revreview-reject-summary' => 'Edit summary:',
263263 'revreview-reject-confirm' => 'Reject these changes',
264264 'revreview-reject-cancel' => 'Cancel',
Index: trunk/extensions/FlaggedRevs/forms/RevisionReviewForm.php
@@ -1029,9 +1029,9 @@
10301030 $wgOut->addHtml( '</ul>' );
10311031 // Revision this will revert to (when reverting the top X revs)...
10321032 if ( $newRev->isCurrent() ) {
1033 - $permaLink = $oldRev->getTitle()->getFullURL( 'oldid=' . $oldRev->getId() );
10341033 $wgOut->addWikiMsg( 'revreview-reject-text-revto',
1035 - $permaLink, $wgLang->timeanddate( $oldRev->getTimestamp(), true ) );
 1034+ $oldRev->getTitle()->getPrefixedDBKey(), $oldRev->getId(),
 1035+ $wgLang->timeanddate( $oldRev->getTimestamp(), true ) );
10361036 }
10371037 $wgOut->addHtml( '</div>' );
10381038

Status & tagging log