Index: trunk/extensions/CategoryTree/CategoryTreeFunctions.php |
— | — | @@ -616,9 +616,11 @@ |
617 | 617 | |
618 | 618 | #when showing only categories, omit namespace in label unless we explicitely defined the configuration setting |
619 | 619 | #patch contributed by Manuel Schneider <manuel.schneider@wikimedia.ch>, Bug 8011 |
620 | | - if ( $hideprefix ) $label = $wgContLang->convertHtml( $title->getText(), true ); |
621 | | - else $label = $wgContLang->convertHtml( $title->getPrefixedText(), true ); |
| 620 | + if ( $hideprefix ) $label = htmlspecialchars( $title->getText() ); |
| 621 | + else $label = htmlspecialchars( $title->getPrefixedText() ); |
622 | 622 | |
| 623 | + $label = $wgContLang->convert( $label, true ); |
| 624 | + |
623 | 625 | if ( $trans && $trans!=$label ) $label.= ' ' . Xml::element( 'i', array( 'class' => 'translation'), $trans ); |
624 | 626 | |
625 | 627 | $labelClass = 'CategoryTreeLabel ' . ' CategoryTreeLabelNs' . $ns; |