From d0ac77eaec174c341437b6d0c31dd1d4dcdc254f Mon Sep 17 00:00:00 2001 From: Zheng Zhu Date: Fri, 8 Apr 2005 18:03:51 +0000 Subject: [PATCH] Try to find variant article when an incomming request leads to a non-existent article. --- index.php | 6 ++++++ 1 file changed, 6 insertions(+) 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' ); -- 2.20.1