From 3b0758d869e06f09d0988ec26e0fc1a486a7c31d Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 27 Apr 2010 18:09:37 +0000 Subject: [PATCH] * (bug 23298) Interwiki links with prefix only in log summaries now link to the correct link --- RELEASE-NOTES | 2 ++ includes/Linker.php | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 519b3eaae9..a781f8564e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -133,6 +133,8 @@ in a negative namespace (which is invalid). displayed on Special:Listusers. * (bug 23313) Move watchlisthidepatrolled above token in watchlist preferences to enhance preference grouping. +* (bug 23298) Interwiki links with prefix only in log summaries now link to the + correct link === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent diff --git a/includes/Linker.php b/includes/Linker.php index 9ff9301a49..4935c59419 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1114,7 +1114,9 @@ class Linker { $target = Title::newFromText( $linkTarget ); if( $target ) { - if( $target->getText() == '' && !$this->commentLocal && $this->commentContextTitle ) { + if( $target->getText() == '' && !$target->getInterwiki() === '' + && !$this->commentLocal && $this->commentContextTitle ) + { $newTarget = clone( $this->commentContextTitle ); $newTarget->setFragment( '#' . $target->getFragment() ); $target = $newTarget; -- 2.20.1