Commit 926f6452 authored by Troy Engel's avatar Troy Engel

Merge branch 'fix_getText' into 'master'

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

See merge request !6
parents 4b09b5bb aefee54b
......@@ -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