X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FCategoryViewer.php;h=a07e1b477502d26e761e148655643aa2494c2252;hb=023fec5d7b3a1a4b57d7bd3c555eeb06fd6bae22;hp=46a1473a91587f1cdd7129159b794f27fc992ba6;hpb=a0b490bbe7a87b54de49f075c59befa8232b2237;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php
index 46a1473a91..a07e1b4775 100644
--- a/includes/CategoryViewer.php
+++ b/includes/CategoryViewer.php
@@ -424,7 +424,7 @@ class CategoryViewer extends ContextSource {
* @return string
*/
function getPagesSection() {
- $ti = wfEscapeWikiText( $this->title->getText() );
+ $name = $this->getOutput()->getUnprefixedDisplayTitle();
# Don't show articles section if there are none.
$r = '';
@@ -440,7 +440,7 @@ class CategoryViewer extends ContextSource {
if ( $rescnt > 0 ) {
$r = "
\n";
- $r .= '
' . $this->msg( 'category_header', $ti )->parse() . "
\n";
+ $r .= '
' . $this->msg( 'category_header' )->rawParams( $name )->parse() . "
\n";
$r .= $countmsg;
$r .= $this->getSectionPagingLinks( 'page' );
$r .= $this->formatList( $this->articles, $this->articles_start_char );
@@ -454,6 +454,7 @@ class CategoryViewer extends ContextSource {
* @return string
*/
function getImageSection() {
+ $name = $this->getOutput()->getUnprefixedDisplayTitle();
$r = '';
$rescnt = $this->showGallery ? $this->gallery->count() : count( $this->imgsNoGallery );
$dbcnt = $this->cat->getFileCount();
@@ -463,10 +464,7 @@ class CategoryViewer extends ContextSource {
if ( $rescnt > 0 ) {
$r .= "
\n";
$r .= '
' .
- $this->msg(
- 'category-media-header',
- wfEscapeWikiText( $this->title->getText() )
- )->text() .
+ $this->msg( 'category-media-header' )->rawParams( $name )->parse() .
"
\n";
$r .= $countmsg;
$r .= $this->getSectionPagingLinks( 'file' );