Changed Instances of rawParams() to plaintextParams()
authorryan10145 <chang.ryan1@yahoo.com>
Thu, 7 Dec 2017 02:54:03 +0000 (21:54 -0500)
committerRyan10145 <chang.ryan10145@gmail.com>
Thu, 7 Dec 2017 20:20:40 +0000 (20:20 +0000)
Bug: T182213
Change-Id: Ibf24dee5ea19092e8a38e57f34c98f513d4c9b21

includes/content/ContentHandler.php
includes/content/WikitextContent.php
includes/widget/search/FullSearchResultWidget.php
includes/widget/search/SimpleSearchResultWidget.php

index a7b97a5..50cc9b5 100644 (file)
@@ -855,7 +855,7 @@ abstract class ContentHandler {
                                );
 
                                return wfMessage( 'autoredircomment', $newTarget->getFullText() )
-                                       ->rawParams( $truncatedtext )->inContentLanguage()->text();
+                                       ->plaintextParams( $truncatedtext )->inContentLanguage()->text();
                        case 'changed-redirect-target':
                                $oldTarget = $oldContent->getRedirectTarget();
                                $newTarget = $newContent->getRedirectTarget();
index 942390f..bc20aa0 100644 (file)
@@ -87,7 +87,7 @@ class WikitextContent extends TextContent {
                if ( $sectionId === 'new' ) {
                        # Inserting a new section
                        $subject = $sectionTitle ? wfMessage( 'newsectionheaderdefaultlevel' )
-                                       ->rawParams( $sectionTitle )->inContentLanguage()->text() . "\n\n" : '';
+                                       ->plaintextParams( $sectionTitle )->inContentLanguage()->text() . "\n\n" : '';
                        if ( Hooks::run( 'PlaceNewSection', [ $this, $oldtext, $subject, &$text ] ) ) {
                                $text = strlen( trim( $oldtext ) ) > 0
                                        ? "{$oldtext}\n\n{$subject}{$text}"
index 5e45c63..af1e027 100644 (file)
@@ -163,7 +163,7 @@ class FullSearchResultWidget implements SearchResultWidget {
                        : $this->linkRenderer->makeLink( $title, $text ? new HtmlArmor( $text ) : null );
 
                return "<span class='searchalttitle'>" .
-                               $this->specialPage->msg( $msgKey )->rawParams( $inner )->text()
+                               $this->specialPage->msg( $msgKey )->rawParams( $inner )->parse()
                        . "</span>";
        }
 
index 8190442..fa07563 100644 (file)
@@ -51,7 +51,7 @@ class SimpleSearchResultWidget implements SearchResultWidget {
                                "<span class='searchalttitle'>" .
                                        $this->specialSearch->msg( 'search-redirect' )->rawParams(
                                                $this->linkRenderer->makeLink( $redirectTitle, $redirectText )
-                                       )->text() .
+                                       )->parse() .
                                "</span>";
                }