Restrict interwiki redirects to local wikis only
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 18 Feb 2005 12:38:09 +0000 (12:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 18 Feb 2005 12:38:09 +0000 (12:38 +0000)
includes/Article.php

index d272372..cd97451 100644 (file)
@@ -320,7 +320,7 @@ class Article {
                                # the rest of the page we're on.
                                if( $globalTitle ) {
                                        global $wgOut;
-                                       if ( $rt->getInterwiki() != '' ) {
+                                       if ( $rt->getInterwiki() != '' && $rt->isLocal() ) {
                                                $wgOut->redirect( $rt->getFullURL() ) ;
                                                return false;
                                        }