- CategoryTreeFunctions.php.old 2006-11-22 19:45:26.000000000 +0100
+++ CategoryTreeFunctions.php 2006-11-22 19:48:44.000000000 +0100
@@ -269,6 +269,7 @@
- $title must be a Title object */ function renderNode( &$title, $mode = CT_MODE_CATEGORIES, $children = false,
$loadchildren = false ) {
+ global $wgCategoryOmitPrefix;
static $uniq = 0; $load = false;
@@ -286,8 +287,9 @@
#$trans = $title->getLocalizedText(); $trans = ''; #place holder for when translated titles are available
- #when showing only categories, omit namespace in label
- if ( $mode == CT_MODE_CATEGORIES ) $label = htmlspecialchars(
$title->getText() );
+ #when showing only categories, omit namespace in label unless we explicitely
defined the configuration setting
+ #patch contributed by Manuel Schneider <manuel.schneider@wikimedia.ch>
+ if ( $wgCategoryOmitPrefix || $mode == CT_MODE_CATEGORIES ) $label =
htmlspecialchars( $title->getText() );
else $label = htmlspecialchars( $title->getPrefixedText() ); if ( $trans && $trans!=$label ) $label.= ' ' . wfElement( 'i', array( 'class'
> 'translation'), $trans );
Version: unspecified
Severity: enhancement