Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -413,11 +413,13 @@ |
414 | 414 | $class = 'interwiki-' . $tmp[0]; |
415 | 415 | unset($tmp); |
416 | 416 | $nt = Title::newFromText( $l ); |
417 | | - $language_urls[] = array( |
418 | | - 'href' => $nt->getFullURL(), |
419 | | - 'text' => ($wgContLang->getLanguageName( $nt->getInterwiki()) != ''?$wgContLang->getLanguageName( $nt->getInterwiki()) : $l), |
420 | | - 'class' => $class |
421 | | - ); |
| 417 | + if ( $nt ) { |
| 418 | + $language_urls[] = array( |
| 419 | + 'href' => $nt->getFullURL(), |
| 420 | + 'text' => ($wgContLang->getLanguageName( $nt->getInterwiki()) != ''?$wgContLang->getLanguageName( $nt->getInterwiki()) : $l), |
| 421 | + 'class' => $class |
| 422 | + ); |
| 423 | + } |
422 | 424 | } |
423 | 425 | } |
424 | 426 | if(count($language_urls)) { |