Merge "Prefer using plaintextParams instead of rawParams where possible"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 31 Oct 2017 09:22:39 +0000 (09:22 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 31 Oct 2017 09:22:39 +0000 (09:22 +0000)
includes/specials/SpecialSearch.php
includes/specials/SpecialUndelete.php

index 85b4572..09210e4 100644 (file)
@@ -529,7 +529,7 @@ class SpecialSearch extends SpecialPage {
                if ( strval( $term ) !== '' ) {
                        $out->setPageTitle( $this->msg( 'searchresults' ) );
                        $out->setHTMLTitle( $this->msg( 'pagetitle' )
-                               ->rawParams( $this->msg( 'searchresults-title' )->rawParams( $term )->text() )
+                               ->plaintextParams( $this->msg( 'searchresults-title' )->plaintextParams( $term )->text() )
                                ->inContentLanguage()->text()
                        );
                }
index 62a48c6..71dee3d 100644 (file)
@@ -974,7 +974,7 @@ class SpecialUndelete extends SpecialPage {
                $userLink = $this->getFileUser( $file );
                $data = $this->msg( 'widthheight' )->numParams( $row->fa_width, $row->fa_height )->text();
                $bytes = $this->msg( 'parentheses' )
-                       ->rawParams( $this->msg( 'nbytes' )->numParams( $row->fa_size )->text() )
+                       ->plaintextParams( $this->msg( 'nbytes' )->numParams( $row->fa_size )->text() )
                        ->plain();
                $data = htmlspecialchars( $data . ' ' . $bytes );
                $comment = $this->getFileComment( $file );