X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=blobdiff_plain;f=maintenance%2Fview.php;h=8683eed5c5cbb8372dd874d4b68f855622f3e5ff;hb=9c70ca60ff08060d5b32867f762d96dbc4314010;hp=671369aff9989b041ca751fce8fb6129fa607990;hpb=94aa1240f033c4d5851b4f5e6ada8e8d571862cc;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" ); }