X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fview.php;h=952b8253ee3bba08349bdcb4fe3f1040c49f2fad;hb=3c8b7ee4a144165b972f4b8d60a7916172fa0a1c;hp=af7eb2d9232a2de88336b0321ed4c8bbb859b3ae;hpb=3a2853e218acb586a00f2e59638de4176aee287f;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;