ImageListPager: Use explicit escaped() instead of implicit __toString()
authorFomafix <fomafix@googlemail.com>
Thu, 23 May 2019 07:00:53 +0000 (09:00 +0200)
committerFomafix <fomafix@googlemail.com>
Thu, 23 May 2019 07:04:42 +0000 (09:04 +0200)
For the messages listfiles-latestversion-yes and
listfiles-latestversion-no a wikitext parsing is not necessary.

Change-Id: I6f9268ebabaa64494d8680b04990944e7a463f32

includes/specials/pagers/ImageListPager.php

index ea55568..8f31f3e 100644 (file)
@@ -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'" );
                }