When showing the "blah has been undeleted" page, make sure it's a blue link
authorRob Church <robchurch@users.mediawiki.org>
Thu, 1 Jun 2006 00:17:23 +0000 (00:17 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Thu, 1 Jun 2006 00:17:23 +0000 (00:17 +0000)
RELEASE-NOTES
includes/SpecialUndelete.php
languages/Messages.php

index 5b42881..a6e8665 100644 (file)
@@ -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 ==
 
index 6e5bb17..1e917da 100644 (file)
@@ -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 */
index 9930298..cb0e9df 100644 (file)
@@ -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' => "<big>'''$1 has been restored'''</big>
+
+Consult the [[Special:Log/delete|deletion log]] for a record of recent deletions and restorations.",
 
 # Namespace form on various pages
 'namespace' => 'Namespace:',