From df65fd4ea19c85411ba79214109573b34bee92bb Mon Sep 17 00:00:00 2001 From: Fomafix Date: Thu, 23 May 2019 09:00:53 +0200 Subject: [PATCH] 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 --- includes/specials/pagers/ImageListPager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'" ); } -- 2.20.1