Replace deprecated call to OutputPage::parse() in HTMLForm
authorC. Scott Ananian <cscott@cscott.net>
Thu, 1 Nov 2018 21:26:10 +0000 (17:26 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Thu, 1 Nov 2018 21:26:10 +0000 (17:26 -0400)
Use OutputPage::parseAsInterface() to tidy the output and make the
selection of user interface language explicit.

Follow-up to Ifeb1ca6eb8b5c743421b8f9e329f1e3658050e47.

Bug: T198214
Change-Id: Ia4b63715380d97ccb3133bf39a260834c20b4f5a

includes/htmlform/HTMLForm.php

index c6882c4..117a8fb 100644 (file)
@@ -1285,7 +1285,7 @@ class HTMLForm extends ContextSource {
                        if ( $status->isGood() ) {
                                $elementstr = '';
                        } else {
-                               $elementstr = $this->getOutput()->parse(
+                               $elementstr = $this->getOutput()->parseAsInterface(
                                        $status->getWikiText()
                                );
                        }