From 6c231cbe4debe713b0b54639f03a61d59c975906 Mon Sep 17 00:00:00 2001 From: Holger Knust Date: Wed, 27 Mar 2019 11:02:17 -0400 Subject: [PATCH] Call method getText() instead of getNativeData() Classes derived from TextContent support the getText method. The previously called method getNativeData is going to be deprecated. Bug: T155582 Change-Id: I550d2ecf2c4b71da17258af0c2306c1ca49806d3 --- includes/common/ScribuntoContent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/common/ScribuntoContent.php b/includes/common/ScribuntoContent.php index 5fbed288..761ec7db 100644 --- a/includes/common/ScribuntoContent.php +++ b/includes/common/ScribuntoContent.php @@ -27,7 +27,7 @@ class ScribuntoContent extends TextContent { public function validate( Title $title ) { $engine = Scribunto::newDefaultEngine(); $engine->setTitle( $title ); - return $engine->validate( $this->getNativeData(), $title->getPrefixedDBkey() ); + return $engine->validate( $this->getText(), $title->getPrefixedDBkey() ); } public function prepareSave( WikiPage $page, $flags, $parentRevId, User $user ) { @@ -49,7 +49,7 @@ class ScribuntoContent extends TextContent { ) { global $wgParser; - $text = $this->getNativeData(); + $text = $this->getText(); // Get documentation, if any $output = new ParserOutput();