X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2Fview.php;h=81c3f3e0ac07524557a7491b7f69f965b7b69702;hb=3a7be6fd4959c8a925b38ef7e928d41ae1daa0c7;hp=8683eed5c5cbb8372dd874d4b68f855622f3e5ff;hpb=52e431fc518ca33ff7acb5a1394fb5ff78c4b695;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/view.php b/maintenance/view.php index 8683eed5c5..81c3f3e0ac 100644 --- a/maintenance/view.php +++ b/maintenance/view.php @@ -41,6 +41,10 @@ class ViewCLI extends Maintenance { $title = Title::newFromText( $this->getArg( 0 ) ); 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 );