Try to find variant article when an incomming request leads to a non-existent article.
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Fri, 8 Apr 2005 18:03:51 +0000 (18:03 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Fri, 8 Apr 2005 18:03:51 +0000 (18:03 +0000)
index.php

index dde287b..b3b3231 100644 (file)
--- a/index.php
+++ b/index.php
@@ -81,6 +81,12 @@ if ( '' == $title && 'delete' != $action ) {
        $wgTitle = Title::newFromID( $curid );
 } else {
        $wgTitle = Title::newFromURL( $title );
+       /* check variant links so that interwiki links don't have to worry about 
+          the possible different language variants
+       */
+       if( $wgTitle->getArticleID() == 0 )
+               $wgContLang->findVariantLink( $title, $wgTitle );
+       
 }
 wfProfileOut( 'main-misc-setup' );