# all articles in the category)
$wgUseCategoryMagic = true;
+# disable experimental dmoz-like category browsing. Output things like:
+# Encyclopedia > Music > Style of Music > Jazz
+# FIXME: need fixing
+$wgUseCategoryBrowser = false;
+
$wgEnablePersistentLC = false; # Persistent link cache in linkscc table; FAILS on MySQL 3.x
$wgCompressedPersistentLC = true; # use gzcompressed blobs
function getCategoryLinks () {
global $wgOut, $wgTitle, $wgUser, $wgParser;
- global $wgUseCategoryMagic, $wgLang;
+ global $wgUseCategoryMagic, $wgUseCategoryBrowser, $wgLang;
if( !$wgUseCategoryMagic ) return "" ;
if( count( $wgOut->mCategoryLinks ) == 0 ) return "";
if( !$wgOut->isArticle() ) return "";
wfMsg( "categories" ), "article=" . urlencode( $wgTitle->getPrefixedDBkey() ) )
. ": " . $t;
- $s .= "<br/><hr/>";
- $catstack = array();
- $wgTitle->getAllParentCategories(&$catstack);
- foreach ($catstack as $key => $cat)
- {
- $s .= $this->makeLink($wgLang->getNSText( Namespace::getCategory() ).":".$key, $key )." > ".$cat."<br/>\n";
+ if($wgUseCategoryBrowser) {
+ $s .= "<br/><hr/>";
+ $catstack = array();
+ $wgTitle->getAllParentCategories(&$catstack);
+ foreach ($catstack as $key => $cat)
+ {
+ $s .= $this->makeLink($wgLang->getNSText( Namespace::getCategory() ).":".$key, $key )." > ".$cat."<br/>\n";
+ }
}
return $s;