diff options
Diffstat (limited to 'maintenance/getText.php')
-rw-r--r-- | maintenance/getText.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/maintenance/getText.php b/maintenance/getText.php index 3e2f8540..f6adfe2b 100644 --- a/maintenance/getText.php +++ b/maintenance/getText.php @@ -52,12 +52,12 @@ class GetTextMaint extends Maintenance { $titleText = $title->getPrefixedText(); $this->error( "Page $titleText does not exist.\n", true ); } - $text = $rev->getText( $this->hasOption( 'show-private' ) ? Revision::RAW : Revision::FOR_PUBLIC ); - if ( $text === false ) { + $content = $rev->getContent( $this->hasOption( 'show-private' ) ? Revision::RAW : Revision::FOR_PUBLIC ); + if ( $content === false ) { $titleText = $title->getPrefixedText(); $this->error( "Couldn't extract the text from $titleText.\n", true ); } - $this->output( $text ); + $this->output( $content->serialize() ); } } |