if ( isset( $revisionInfo['model'] ) ) {
$revision->setModel( $revisionInfo['model'] );
}
- if ( isset( $revisionInfo['text'] ) ) {
+ if ( isset( $revisionInfo['format'] ) ) {
$revision->setFormat( $revisionInfo['format'] );
}
$revision->setTitle( $pageInfo['_title'] );
* @deprecated Since 1.21, use getContent() instead.
*/
function getText() {
- wfDeprecated( "Use getContent() instead." );
+ ContentHandler::deprecated( __METHOD__, '1.21' );
return $this->text;
}