* (bug 23298) Interwiki links with prefix only in log summaries now link to the corre...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 27 Apr 2010 18:09:37 +0000 (18:09 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 27 Apr 2010 18:09:37 +0000 (18:09 +0000)
RELEASE-NOTES
includes/Linker.php

index 519b3ea..a781f85 100644 (file)
@@ -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
index 9ff9301..4935c59 100644 (file)
@@ -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;