function getCategoryLinks () {
global $wgOut, $wgTitle, $wgUser, $wgParser;
- global $wgUseCategoryMagic;
+ global $wgUseCategoryMagic, $wgLang;
if( !$wgUseCategoryMagic ) return "" ;
if( count( $wgOut->mCategoryLinks ) == 0 ) return "";
if( !$wgOut->isArticle() ) return "";
$wgTitle->getAllParentCategories(&$catstack);
foreach ($catstack as $key => $cat)
{
- $s .= $key." > ".$cat."<br/>\n";
+ $s .= $this->makeLink($wgLang->getNSText( Namespace::getCategory() ).":".$key, $key )." > ".$cat."<br/>\n";
}
return $s;