From: Magnus Manske Date: Tue, 20 Apr 2004 21:46:48 +0000 (+0000) Subject: Category namespaces X-Git-Tag: 1.3.0beta1~358 X-Git-Url: http://git.cyclocoop.org/geomaker.php?a=commitdiff_plain;h=d6be3a0cf6e3a8fce9134122df0287e787f17945;p=lhc%2Fweb%2Fwiklou.git Category namespaces --- 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 ) ;