X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fview.php;h=952b8253ee3bba08349bdcb4fe3f1040c49f2fad;hb=e856b6638c2e22d6eae70c04e137511380818f86;hp=af7eb2d9232a2de88336b0321ed4c8bbb859b3ae;hpb=5b1dcdc344f5d251120a161637bcb89e01b0f6a4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/view.php b/maintenance/view.php index af7eb2d923..952b8253ee 100644 --- a/maintenance/view.php +++ b/maintenance/view.php @@ -38,22 +38,22 @@ class ViewCLI extends Maintenance { public function execute() { $title = Title::newFromText( $this->getArg() ); if ( !$title ) { - $this->error( "Invalid title", true ); + $this->fatalError( "Invalid title" ); } $page = WikiPage::factory( $title ); $content = $page->getContent( Revision::RAW ); if ( !$content ) { - $this->error( "Page has no content", true ); + $this->fatalError( "Page has no content" ); } if ( !$content instanceof TextContent ) { - $this->error( "Non-text content models not supported", true ); + $this->fatalError( "Non-text content models not supported" ); } $this->output( $content->getNativeData() ); } } -$maintClass = "ViewCLI"; +$maintClass = ViewCLI::class; require_once RUN_MAINTENANCE_IF_MAIN;