X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fview.php;h=8683eed5c5cbb8372dd874d4b68f855622f3e5ff;hb=c58f4f99856ebe4f8dd42c0d4c07bfdfa1ec74cd;hp=671369aff9989b041ca751fce8fb6129fa607990;hpb=9c196be1d450480b230e2ce9e162b9e1dfe8a4bb;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/view.php b/maintenance/view.php index 671369aff9..8683eed5c5 100644 --- a/maintenance/view.php +++ b/maintenance/view.php @@ -21,6 +21,8 @@ * @ingroup Maintenance */ +use MediaWiki\Revision\RevisionRecord; + require_once __DIR__ . '/Maintenance.php'; /** @@ -43,7 +45,7 @@ class ViewCLI extends Maintenance { $page = WikiPage::factory( $title ); - $content = $page->getContent( Revision::RAW ); + $content = $page->getContent( RevisionRecord::RAW ); if ( !$content ) { $this->fatalError( "Page has no content" ); }