From: Brion Vibber Date: Sat, 12 Jun 2004 01:37:42 +0000 (+0000) Subject: Detect bad titles on watchlist (shouldn't happen, but we want to live through it... X-Git-Tag: 1.5.0alpha1~2897 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=0e306660f5c26071094ecfac8de4917bcbca1445;p=lhc%2Fweb%2Fwiklou.git Detect bad titles on watchlist (shouldn't happen, but we want to live through it when it does) --- diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 45c055cc5d..e3950c3056 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -102,10 +102,14 @@ function wfSpecialWatchlist() $sk = $wgUser->getSkin(); while( $s = wfFetchObject( $res ) ) { $t = Title::makeTitle( $s->wl_namespace, $s->wl_title ); - $t = $t->getPrefixedText(); - $wgOut->addHTML( "
  • " . - $sk->makeKnownLink( $t, $t ) . - "
  • \n" ); + if( is_null( $t ) ) { + $wgOut->addHTML( '\n" ); + } else { + $t = $t->getPrefixedText(); + $wgOut->addHTML( "
  • " . + $sk->makeKnownLink( $t, $t ) . + "
  • \n" ); + } } $wgOut->addHTML( "\n" . "