Write some preliminary release notes for 1.5 alpha
[lhc/web/wiklou.git] / index.php
index dde287b..c060cc4 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,6 +1,6 @@
 <?php
 /**
- * Main wiki script; see docs/design.doc
+ * Main wiki script; see docs/design.txt
  * @package MediaWiki
  */
 
@@ -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( !is_null($wgTitle) && $wgTitle->getArticleID() == 0 )
+               $wgContLang->findVariantLink( $title, $wgTitle );
+       
 }
 wfProfileOut( 'main-misc-setup' );