(bug 5013) Check for existence on "return to" links
authorRob Church <robchurch@users.mediawiki.org>
Thu, 16 Feb 2006 22:29:53 +0000 (22:29 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Thu, 16 Feb 2006 22:29:53 +0000 (22:29 +0000)
RELEASE-NOTES
includes/OutputPage.php

index b5a62f6..28c5508 100644 (file)
@@ -619,7 +619,7 @@ fully support the editing toolbar, but was found to be too confusing.
   on Special:Undelete by default; show source, with an optional preview.
   The revisions list no longer shows the latest text by default, so it can
   still be operated if the text is hostile.
-
+* (bug 5013) Check for existence on "return to" links
 
 === Caveats ===
 
index 0c73c33..510b9eb 100644 (file)
@@ -876,7 +876,7 @@ class OutputPage {
                if ( '' == $returnto ) {
                        $returnto = wfMsgForContent( 'mainpage' );
                }
-               $link = $sk->makeKnownLink( $returnto, '' );
+               $link = $sk->makeLinkObj( Title::newFromText( $returnto ), '' );
 
                $r = wfMsg( 'returnto', $link );
                if ( $auto ) {