X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fview.php;h=671369aff9989b041ca751fce8fb6129fa607990;hp=8c0237f63fae34e89d1e1a49be1d10740cf10dd0;hb=e90012d5581801045910f31ddefa9aee52e39d39;hpb=785960660f2a29f59eaaf760e71f675b9a71de8c 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;