From a4afe3a91a3e91ab3e73fd71b455b4c85af679e1 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Thu, 16 Feb 2006 22:29:53 +0000 Subject: [PATCH] (bug 5013) Check for existence on "return to" links --- RELEASE-NOTES | 2 +- includes/OutputPage.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b5a62f6534..28c5508c90 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 0c73c333f9..510b9eb0a1 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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 ) { -- 2.20.1