From f47aa05e78dc4d147991ddd93578c44eeae056b2 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 17 Jun 2008 14:36:36 +0000 Subject: [PATCH] Use redirect=no on redirects listed in file links. --- RELEASE-NOTES | 1 + includes/ImagePage.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 00a1afc0ad..c430c3d4ae 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -379,6 +379,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 13878) Deprecate Article::getDB() in favor of direct wfGetDB() calls * (bug 4977) Fix for possible squid purging errors when using HTTP purges and multiple servers +* (bug 14572) Redirects listed on file links on image pages no longer redirect. === API changes in 1.13 === diff --git a/includes/ImagePage.php b/includes/ImagePage.php index d32feee03f..5d4db92eee 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -685,7 +685,7 @@ EOT $sk = $wgUser->getSkin(); foreach ( $redirects as $title ) { - $link = $sk->makeKnownLinkObj( $title, "" ); + $link = $sk->makeKnownLinkObj( $title, "", "redirect=no" ); $wgOut->addHTML( "
  • {$link}
  • \n" ); } $wgOut->addHTML( "\n" ); -- 2.20.1