X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fview.php;h=8683eed5c5cbb8372dd874d4b68f855622f3e5ff;hb=095c50ade11ccea3b0edc8956ad45dea46d4c18b;hp=24b500774528926d9fc018a1753620159773df54;hpb=f0d9768b4e9f13fe75a22800471cb5543931a066;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/view.php b/maintenance/view.php index 24b5007745..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'; /** @@ -36,14 +38,14 @@ class ViewCLI extends Maintenance { } public function execute() { - $title = Title::newFromText( $this->getArg() ); + $title = Title::newFromText( $this->getArg( 0 ) ); if ( !$title ) { $this->fatalError( "Invalid title" ); } $page = WikiPage::factory( $title ); - $content = $page->getContent( Revision::RAW ); + $content = $page->getContent( RevisionRecord::RAW ); if ( !$content ) { $this->fatalError( "Page has no content" ); }