X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fview.php;h=8683eed5c5cbb8372dd874d4b68f855622f3e5ff;hb=62991fcb7a5027b1eceb5656829c1c65bf9f98cb;hp=24b500774528926d9fc018a1753620159773df54;hpb=dd35e1a469b96a787e015dce28adfb5a8b6daa62;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" ); }