From: Zheng Zhu Date: Mon, 2 May 2005 03:18:31 +0000 (+0000) Subject: Added conversion when displaying results X-Git-Tag: 1.5.0alpha1~29 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=316f157d0593e8fe143c3d259183602e3981921e;p=lhc%2Fweb%2Fwiklou.git Added conversion when displaying results --- 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() );