X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fview.php;h=671369aff9989b041ca751fce8fb6129fa607990;hb=8665536045cf81dfbd1cdbeee19eebe3a239297a;hp=952b8253ee3bba08349bdcb4fe3f1040c49f2fad;hpb=220bda9175a18458449e9d754fb48830c1f76f25;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/view.php b/maintenance/view.php index 952b8253ee..671369aff9 100644 --- a/maintenance/view.php +++ b/maintenance/view.php @@ -36,7 +36,7 @@ class ViewCLI extends Maintenance { } public function execute() { - $title = Title::newFromText( $this->getArg() ); + $title = Title::newFromText( $this->getArg( 0 ) ); if ( !$title ) { $this->fatalError( "Invalid title" ); } @@ -51,7 +51,7 @@ class ViewCLI extends Maintenance { $this->fatalError( "Non-text content models not supported" ); } - $this->output( $content->getNativeData() ); + $this->output( $content->getText() ); } }