From: Fomafix Date: Thu, 23 May 2019 07:00:53 +0000 (+0200) Subject: ImageListPager: Use explicit escaped() instead of implicit __toString() X-Git-Tag: 1.34.0-rc.0~1617 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=df65fd4ea19c85411ba79214109573b34bee92bb;p=lhc%2Fweb%2Fwiklou.git ImageListPager: Use explicit escaped() instead of implicit __toString() For the messages listfiles-latestversion-yes and listfiles-latestversion-no a wikitext parsing is not necessary. Change-Id: I6f9268ebabaa64494d8680b04990944e7a463f32 --- diff --git a/includes/specials/pagers/ImageListPager.php b/includes/specials/pagers/ImageListPager.php index ea55568fd2..8f31f3e630 100644 --- a/includes/specials/pagers/ImageListPager.php +++ b/includes/specials/pagers/ImageListPager.php @@ -513,7 +513,7 @@ class ImageListPager extends TablePager { return $this->getLanguage()->formatNum( intval( $value ) + 1 ); case 'top': // Messages: listfiles-latestversion-yes, listfiles-latestversion-no - return $this->msg( 'listfiles-latestversion-' . $value ); + return $this->msg( 'listfiles-latestversion-' . $value )->escaped(); default: throw new MWException( "Unknown field '$field'" ); }