From c2185a765364146c677968eed7b9f54d5375792b Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 24 Apr 2004 09:07:04 +0000 Subject: [PATCH] Also fix the underscore business for broken cat links --- includes/SpecialCategories.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 ) ; -- 2.20.1