dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
036e260
)
Also fix the underscore business for broken cat links
author
Brion Vibber
<brion@users.mediawiki.org>
Sat, 24 Apr 2004 09:07:04 +0000
(09:07 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sat, 24 Apr 2004 09:07:04 +0000
(09:07 +0000)
includes/SpecialCategories.php
patch
|
blob
|
history
diff --git
a/includes/SpecialCategories.php
b/includes/SpecialCategories.php
index
faa9860
..
1a3efca
100644
(file)
--- 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 .= "<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->makeBrokenLink
Obj( $title, $title->getText()
) ;
$r .= "</li>\n" ;
}
wfFreeResult ( $res ) ;