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