Update users of deprecated OutputPage::addWikiText*Tidy() methods
authorC. Scott Ananian <cscott@cscott.net>
Wed, 26 Sep 2018 17:17:14 +0000 (13:17 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Wed, 10 Oct 2018 18:54:27 +0000 (14:54 -0400)
This is a follow-up to Ia58910164baaca608cea3b24333b7d13ed773339 which
added new & improved names for the addWikiText*Tidy() methods.

Bug: T198214
Depends-On: I42d198e6d03afd5b976da741f235c175bfe9f767
Change-Id: I1993c2009e861fdb45c9b1bd42eab1e28a776d9a

includes/EditPage.php
includes/specials/SpecialNewimages.php

index 29abfb1..6b79538 100644 (file)
@@ -2666,8 +2666,9 @@ ERROR;
                        $title = Title::newFromText( $this->editintro );
                        if ( $title instanceof Title && $title->exists() && $title->userCan( 'read' ) ) {
                                // Added using template syntax, to take <noinclude>'s into account.
-                               $this->context->getOutput()->addWikiTextTitleTidy(
+                               $this->context->getOutput()->addWikiTextAsContent(
                                        '<div class="mw-editintro">{{:' . $title->getFullText() . '}}</div>',
+                                       /*linestart*/true,
                                        $this->mTitle
                                );
                                return true;
index e88162e..06e1c77 100644 (file)
@@ -218,7 +218,7 @@ class SpecialNewFiles extends IncludableSpecialPage {
                $message = $this->msg( 'newimagestext' )->inContentLanguage();
                if ( !$message->isDisabled() ) {
                        $contLang = MediaWikiServices::getInstance()->getContentLanguage();
-                       $this->getOutput()->addWikiTextTidy(
+                       $this->getOutput()->addWikiTextAsContent(
                                Html::rawElement( 'div',
                                        [