X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgetText.php;h=3b7ba634b5e52694f0521fd0e5ec0a07cf65ed80;hb=2aed14b6867314ef9f08d09cc2dc502f7dddb050;hp=21a183b6f547f73ae4034da3058911c320efc0df;hpb=64a6afaf6964b3f9e61d595d5586fe7428a57e73;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/getText.php b/maintenance/getText.php index 21a183b6f5..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(); @@ -62,5 +64,5 @@ class GetTextMaint extends Maintenance { } } -$maintClass = "GetTextMaint"; +$maintClass = GetTextMaint::class; require_once RUN_MAINTENANCE_IF_MAIN;