r14506 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14505‎ | r14506 | r14507 >
Date:00:17, 1 June 2006
Author:robchurch
Status:old
Tags:
Comment:
When showing the "blah has been undeleted" page, make sure it's a blue link
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialUndelete.php (modified) (history)
  • /trunk/phase3/languages/Messages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialUndelete.php
@@ -554,11 +554,13 @@
555555 }
556556
557557 function undelete() {
558 - global $wgOut;
 558+ global $wgOut, $wgUser;
559559 if( !is_null( $this->mTargetObj ) ) {
560560 $archive = new PageArchive( $this->mTargetObj );
561561 if( $archive->undelete( $this->mTargetTimestamp, $this->mComment ) ) {
562 - $wgOut->addWikiText( wfMsg( "undeletedtext", $this->mTarget ) );
 562+ $skin =& $wgUser->getSkin();
 563+ $link = $skin->makeKnownLinkObj( $this->mTargetObj );
 564+ $wgOut->addHtml( wfMsgWikiHtml( 'undeletedpage', $link ) );
563565
564566 if (NS_IMAGE == $this->mTargetObj->getNamespace()) {
565567 /* refresh image metadata cache */
Index: trunk/phase3/RELEASE-NOTES
@@ -394,8 +394,8 @@
395395 * (bug 5527) Batch up job queue insertions for, hopefully, better survivability
396396 of lock contention etc. Duplicates are now removed at pop time instead of
397397 at insert time.
 398+* When showing the "blah has been undeleted" page, make sure it's a blue link
398399
399 -
400400 == Compatibility ==
401401
402402 MediaWiki 1.7 requires PHP 5 (5.1 recommended). PHP 4 is no longer supported.
Index: trunk/phase3/languages/Messages.php
@@ -1210,9 +1210,10 @@
12111211 'undeletecomment' => 'Comment:',
12121212 'undeletedarticle' => "restored \"[[$1]]\"",
12131213 'undeletedrevisions' => "$1 revisions restored",
1214 -'undeletedtext' => "[[:$1|$1]] has been successfully restored.
1215 -See [[Special:Log/delete]] for a record of recent deletions and restorations.",
 1214+'undeletedpage' => "<big>'''$1 has been restored'''</big>
12161215
 1216+Consult the [[Special:Log/delete|deletion log]] for a record of recent deletions and restorations.",
 1217+
12171218 # Namespace form on various pages
12181219 'namespace' => 'Namespace:',
12191220 'invert' => 'Invert selection',

Status & tagging log