From 316f157d0593e8fe143c3d259183602e3981921e Mon Sep 17 00:00:00 2001 From: Zheng Zhu Date: Mon, 2 May 2005 03:18:31 +0000 Subject: [PATCH] Added conversion when displaying results --- includes/SpecialUnusedimages.php | 2 +- includes/SpecialWantedpages.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/SpecialUnusedimages.php b/includes/SpecialUnusedimages.php index 57ac474cac..c4d7d2a774 100644 --- a/includes/SpecialUnusedimages.php +++ b/includes/SpecialUnusedimages.php @@ -58,7 +58,7 @@ class UnusedimagesPage extends QueryPage { # Link to username . ' . . '.$skin->makeLinkObj( Title::makeTitle( NS_USER, $result->img_user_text ), $result->img_user_text) # If there is a description, show it - . $skin->commentBlock( $result->img_description ); + . $skin->commentBlock( $wgContLang->convert( $result->img_description ) ); return $return; } diff --git a/includes/SpecialWantedpages.php b/includes/SpecialWantedpages.php index e345703d3a..1cbd8bb9fc 100644 --- a/includes/SpecialWantedpages.php +++ b/includes/SpecialWantedpages.php @@ -47,10 +47,11 @@ class WantedPagesPage extends QueryPage { global $wgContLang; $nt = Title::newFromDBkey( $result->title ); + $text = $wgContLang->convert( $result->title ); if( is_null( $nt ) ) { return ""; } - $plink = $skin->makeBrokenLink( $nt->getPrefixedText(), "" ); + $plink = $skin->makeBrokenLink( $nt->getPrefixedText(), $text ); $nl = wfMsg( "nlinks", $result->value ); $nlink = $skin->makeKnownLink( $wgContLang->specialPage( "Whatlinkshere" ), $nl, "target=" . $nt->getPrefixedURL() ); -- 2.20.1