X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fview.php;h=671369aff9989b041ca751fce8fb6129fa607990;hb=1f46e0e6dc36a8f351f3b71a324f8ac0e6f19adc;hp=8c0237f63fae34e89d1e1a49be1d10740cf10dd0;hpb=58858df842f91d9ea1c9f9b6f3c767d8b204886b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/view.php b/maintenance/view.php index 8c0237f63f..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,9 +51,9 @@ class ViewCLI extends Maintenance { $this->fatalError( "Non-text content models not supported" ); } - $this->output( $content->getNativeData() ); + $this->output( $content->getText() ); } } -$maintClass = "ViewCLI"; +$maintClass = ViewCLI::class; require_once RUN_MAINTENANCE_IF_MAIN;