From: Brion Vibber Date: Sat, 24 Apr 2004 09:07:04 +0000 (+0000) Subject: Also fix the underscore business for broken cat links X-Git-Tag: 1.3.0beta1~290 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=c2185a765364146c677968eed7b9f54d5375792b;p=lhc%2Fweb%2Fwiklou.git Also fix the underscore business for broken cat links --- diff --git a/includes/SpecialCategories.php b/includes/SpecialCategories.php index faa9860e09..1a3efca0cc 100644 --- a/includes/SpecialCategories.php +++ b/includes/SpecialCategories.php @@ -30,12 +30,10 @@ function wfSpecialCategories() $sql = "SELECT DISTINCT bl_to FROM brokenlinks WHERE bl_to LIKE \"{$cat}:%\"" ; $res = wfQuery ( $sql, DB_READ ) ; $r .= "
    \n" ; - while ( $x = wfFetchObject ( $res ) ) - { - $t = explode ( ":" , $x->bl_to , 2 ) ; - $t = $t[1] ; + while ( $x = wfFetchObject ( $res ) ) { + $title = Title::newFromDBkey( $x->bl_to ); $r .= "
  1. " ; - $r .= $sk->makeBrokenLink( $x->bl_to, $t ) ; + $r .= $sk->makeBrokenLinkObj( $title, $title->getText() ) ; $r .= "
  2. \n" ; } wfFreeResult ( $res ) ;