X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fview.php;h=b75fe5b10ff29f08a8f1763b419e82711f06e4a7;hp=952b8253ee3bba08349bdcb4fe3f1040c49f2fad;hb=2e3696b224b6baf4b71c61331645724a90375f39;hpb=d418e8e261600fd6b3aed2dc9430e529027f2dd6 diff --git a/maintenance/view.php b/maintenance/view.php index 952b8253ee..b75fe5b10f 100644 --- a/maintenance/view.php +++ b/maintenance/view.php @@ -39,6 +39,10 @@ class ViewCLI extends Maintenance { $title = Title::newFromText( $this->getArg() ); if ( !$title ) { $this->fatalError( "Invalid title" ); + } elseif ( $title->isSpecialPage() ) { + $this->fatalError( "Special Pages not supported" ); + } elseif ( !$title->exists() ) { + $this->fatalError( "Page does not exist" ); } $page = WikiPage::factory( $title );