From d6be3a0cf6e3a8fce9134122df0287e787f17945 Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Tue, 20 Apr 2004 21:46:48 +0000 Subject: [PATCH] Category namespaces --- includes/SpecialCategories.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialCategories.php b/includes/SpecialCategories.php index 39e8f085aa..ea39fca35b 100644 --- a/includes/SpecialCategories.php +++ b/includes/SpecialCategories.php @@ -9,7 +9,7 @@ function wfSpecialCategories() $r = "" ; $r .= "
    \n" ; $cat = ucfirst ( wfMsg ( "category" ) ) ; - $sql = "SELECT cur_title FROM cur WHERE cur_title LIKE \"{$cat}:%\"" ; + $sql = "SELECT cur_title FROM cur WHERE cur_namespace=".Namespace::getCategory() ; $res = wfQuery ( $sql, DB_READ ) ; while ( $x = wfFetchObject ( $res ) ) { @@ -31,7 +31,7 @@ function wfSpecialCategories() $t = explode ( ":" , $x->bl_to , 2 ) ; $t = $t[1] ; $r .= "
  1. " ; - $r .= $sk->makeBrokenLink ( $x->bl_to , $t ) ; + $r .= $sk->makeBrokenLink ( $x->bl_to ) ; $r .= "
  2. \n" ; } wfFreeResult ( $res ) ; -- 2.20.1