From 9db190c7e736ec8d063187d4241b59feaf7dc2d1 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 22 Jun 2011 11:28:20 +0200 Subject: update to MediaWiki 1.17.0 --- includes/WikiMap.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'includes/WikiMap.php') diff --git a/includes/WikiMap.php b/includes/WikiMap.php index 878e165f..e12f7abe 100644 --- a/includes/WikiMap.php +++ b/includes/WikiMap.php @@ -12,7 +12,7 @@ class WikiMap { * @return WikiReference object or null if the wiki was not found */ public static function getWiki( $wikiID ) { - global $wgConf, $IP; + global $wgConf; $wgConf->loadFullData(); @@ -68,12 +68,14 @@ class WikiMap { global $wgUser; $sk = $wgUser->getSkin(); - if ( !$text ) + if ( !$text ) { $text = $page; + } $url = self::getForeignURL( $wikiID, $page ); - if ( $url === false ) + if ( $url === false ) { return false; + } return $sk->makeExternalLink( $url, $text ); } @@ -88,8 +90,9 @@ class WikiMap { public static function getForeignURL( $wikiID, $page ) { $wiki = WikiMap::getWiki( $wikiID ); - if ( $wiki ) + if ( $wiki ) { return $wiki->getUrl( $page ); + } return false; } -- cgit v1.2.2