X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fview.php;h=671369aff9989b041ca751fce8fb6129fa607990;hb=1f46e0e6dc36a8f351f3b71a324f8ac0e6f19adc;hp=952b8253ee3bba08349bdcb4fe3f1040c49f2fad;hpb=495e8ddf7e6940777f3318a1a2e37d85bfdbdbf1;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() ); } }