From ded981228424c5315eb55be175b4df6593bac412 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Thu, 1 Jun 2006 00:17:23 +0000 Subject: [PATCH] When showing the "blah has been undeleted" page, make sure it's a blue link --- RELEASE-NOTES | 2 +- includes/SpecialUndelete.php | 6 ++++-- languages/Messages.php | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5b42881efa..a6e8665707 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -394,7 +394,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 5527) Batch up job queue insertions for, hopefully, better survivability of lock contention etc. Duplicates are now removed at pop time instead of at insert time. - +* When showing the "blah has been undeleted" page, make sure it's a blue link == Compatibility == diff --git a/includes/SpecialUndelete.php b/includes/SpecialUndelete.php index 6e5bb175b8..1e917da87b 100644 --- a/includes/SpecialUndelete.php +++ b/includes/SpecialUndelete.php @@ -554,11 +554,13 @@ class UndeleteForm { } function undelete() { - global $wgOut; + global $wgOut, $wgUser; if( !is_null( $this->mTargetObj ) ) { $archive = new PageArchive( $this->mTargetObj ); if( $archive->undelete( $this->mTargetTimestamp, $this->mComment ) ) { - $wgOut->addWikiText( wfMsg( "undeletedtext", $this->mTarget ) ); + $skin =& $wgUser->getSkin(); + $link = $skin->makeKnownLinkObj( $this->mTargetObj ); + $wgOut->addHtml( wfMsgWikiHtml( 'undeletedpage', $link ) ); if (NS_IMAGE == $this->mTargetObj->getNamespace()) { /* refresh image metadata cache */ diff --git a/languages/Messages.php b/languages/Messages.php index 9930298734..cb0e9df732 100644 --- a/languages/Messages.php +++ b/languages/Messages.php @@ -1210,8 +1210,9 @@ before deletion. The actual text of these deleted revisions is only available to 'undeletecomment' => 'Comment:', 'undeletedarticle' => "restored \"[[$1]]\"", 'undeletedrevisions' => "$1 revisions restored", -'undeletedtext' => "[[:$1|$1]] has been successfully restored. -See [[Special:Log/delete]] for a record of recent deletions and restorations.", +'undeletedpage' => "'''$1 has been restored''' + +Consult the [[Special:Log/delete|deletion log]] for a record of recent deletions and restorations.", # Namespace form on various pages 'namespace' => 'Namespace:', -- 2.20.1