X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FWikiMap.php;h=e12f7abe826436665c0856edca646cec7cc208be;hb=b066397f10008e30242afa3eeb0af692502e419e;hp=878e165fb5f911f107f31a5a3e6e3ca92cc4f07b;hpb=e505a59df76495e33450a24c5f0462fe0da15a2a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WikiMap.php b/includes/WikiMap.php index 878e165fb5..e12f7abe82 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; }