From: Zheng Zhu Date: Fri, 8 Apr 2005 18:03:51 +0000 (+0000) Subject: Try to find variant article when an incomming request leads to a non-existent article. X-Git-Tag: 1.5.0alpha1~343 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=d0ac77eaec174c341437b6d0c31dd1d4dcdc254f;p=lhc%2Fweb%2Fwiklou.git Try to find variant article when an incomming request leads to a non-existent article. --- diff --git a/index.php b/index.php index dde287b2c9..b3b32319e5 100644 --- 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' );