Index: trunk/extensions/GlobalBlocking/GlobalBlocking.php |
— | — | @@ -210,8 +210,10 @@ |
211 | 211 | if (class_exists('WikiMap')) { |
212 | 212 | // We can give more info than just the wiki id! |
213 | 213 | $wiki = WikiMap::getWiki( $wiki_id ); |
214 | | - |
215 | | - return $wiki->getDisplayName(); |
| 214 | + |
| 215 | + if ($wiki) { |
| 216 | + return $wiki->getDisplayName(); |
| 217 | + } |
216 | 218 | } |
217 | 219 | |
218 | 220 | return $wiki_id; |
— | — | @@ -221,7 +223,9 @@ |
222 | 224 | if (class_exists( 'WikiMap')) { |
223 | 225 | $wiki = WikiMap::getWiki( $wiki_id ); |
224 | 226 | |
225 | | - return "[".$wiki->getUrl( "User:$user" )." $user]"; |
| 227 | + if ($wiki) { |
| 228 | + return "[".$wiki->getUrl( "User:$user" )." $user]"; |
| 229 | + } |
226 | 230 | } |
227 | 231 | return $user; |
228 | 232 | } |