* (bug 23298) Interwiki links with prefix only in log summaries now link to the corre...
[lhc/web/wiklou.git] / includes / Linker.php
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;