\n";
$r .= $countmsg;
$r .= $this->getSectionPagingLinks( 'subcat' );
$r .= $this->formatList( $this->children, $this->children_start_char );
@@ -364,7 +383,7 @@ class CategoryViewer extends ContextSource {
* @return string
*/
function getPagesSection() {
- $ti = htmlspecialchars( $this->title->getText() );
+ $ti = wfEscapeWikiText( $this->title->getText() );
# Don't show articles section if there are none.
$r = '';
@@ -379,7 +398,7 @@ class CategoryViewer extends ContextSource {
if ( $rescnt > 0 ) {
$r = "
\n";
- $r .= '
' . wfMsg( 'category_header', $ti ) . "
\n";
+ $r .= '
' . $this->msg( 'category_header', $ti )->text() . "
\n";
$r .= $countmsg;
$r .= $this->getSectionPagingLinks( 'page' );
$r .= $this->formatList( $this->articles, $this->articles_start_char );
@@ -400,7 +419,7 @@ class CategoryViewer extends ContextSource {
$countmsg = $this->getCountMessage( $rescnt, $dbcnt, 'file' );
$r .= "