Commit aefee54b authored by Daniel A Kessler's avatar Daniel A Kessler

Avoid using `Revision::getText()` as this is...

Avoid using `Revision::getText()` as this is (deprecated)[https://www.mediawiki.org/wiki/Manual:Revision.php]
parent 4b09b5bb
......@@ -40,7 +40,9 @@ class Preloader {
$title = Title::newFromText( $page );
if ( $title && $title->exists() ) {
$revision = Revision::newFromTitle( $title );
return self::transform( $revision->getText() );
$content = $revision->getContent();
$text = ContentHandler::getContentText( $content );
return self::transform( $text );
} else {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment