X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgetText.php;h=3b7ba634b5e52694f0521fd0e5ec0a07cf65ed80;hb=04cea76cbbd1c66ddfa2a674cf383ffb497234ae;hp=2e8cf7705ad224f3447f2efd2f1e45a1688a0376;hpb=faf7cc4a09848c538320bd2b9067b1a77c0a0183;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/getText.php b/maintenance/getText.php index 2e8cf7705a..3b7ba634b5 100644 --- a/maintenance/getText.php +++ b/maintenance/getText.php @@ -23,6 +23,8 @@ * @ingroup Maintenance */ +use MediaWiki\Revision\RevisionRecord; + require_once __DIR__ . '/Maintenance.php'; /** @@ -51,8 +53,8 @@ class GetTextMaint extends Maintenance { $this->fatalError( "Page $titleText does not exist.\n" ); } $content = $rev->getContent( $this->hasOption( 'show-private' ) - ? Revision::RAW - : Revision::FOR_PUBLIC ); + ? RevisionRecord::RAW + : RevisionRecord::FOR_PUBLIC ); if ( $content === false ) { $titleText = $title->getPrefixedText();