<?php
/**
- * Main wiki script; see docs/design.doc
+ * Main wiki script; see docs/design.txt
* @package MediaWiki
*/
/* check variant links so that interwiki links don't have to worry about
the possible different language variants
*/
- if( $wgTitle->getArticleID() == 0 )
+ if( !is_null($wgTitle) && $wgTitle->getArticleID() == 0 )
$wgContLang->findVariantLink( $title, $wgTitle );
}