Also fix the underscore business for broken cat links
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 24 Apr 2004 09:07:04 +0000 (09:07 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 24 Apr 2004 09:07:04 +0000 (09:07 +0000)
includes/SpecialCategories.php

index faa9860..1a3efca 100644 (file)
@@ -30,12 +30,10 @@ function wfSpecialCategories()
        $sql = "SELECT DISTINCT bl_to FROM brokenlinks WHERE bl_to LIKE \"{$cat}:%\"" ;
        $res = wfQuery ( $sql, DB_READ ) ;
        $r .= "<ol>\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 .= "<li>" ;
-           $r .= $sk->makeBrokenLink( $x->bl_to, $t ) ;
+           $r .= $sk->makeBrokenLinkObj( $title, $title->getText() ) ;
            $r .= "</li>\n" ;
          }
        wfFreeResult ( $res ) ;