From: Mr. E23 Date: Wed, 14 Jan 2004 22:46:12 +0000 (+0000) Subject: Removed exit() statement X-Git-Tag: 1.3.0beta1~1161 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=1cab09835788d44177172f10d7e6c41efcc625c5;p=lhc%2Fweb%2Fwiklou.git Removed exit() statement --- diff --git a/wiki.phtml b/wiki.phtml index adcfe63f45..8071dfbdde 100644 --- a/wiki.phtml +++ b/wiki.phtml @@ -42,17 +42,13 @@ if ( "" == $title && "delete" != $action ) { $wgTitle = Title::newFromText( wfMsg( "mainpage" ) ); } else { $wgTitle = Title::newFromURL( $title ); -# if( $wgTitle->getInterwiki() != "" or $wgTitle->getDBkey() == "" or strncmp($wgTitle->getDBkey(),"_",1) == 0 ) { - if( !$wgTitle or $wgTitle->getInterwiki() != "" or $wgTitle->getDBkey() == "" ) { - $wgTitle = Title::newFromText( wfMsg( "badtitle" ) ); - $wgOut->errorpage( "badtitle", "badtitletext" ); - $wgOut->output(); - exit; - } } wfProfileOut( "main-misc-setup" ); -if ( Namespace::getSpecial() == $wgTitle->getNamespace() ) { +if( !$wgTitle or $wgTitle->getInterwiki() != "" or $wgTitle->getDBkey() == "" ) { + $wgTitle = Title::newFromText( wfMsg( "badtitle" ) ); + $wgOut->errorpage( "badtitle", "badtitletext" ); +} else if ( Namespace::getSpecial() == $wgTitle->getNamespace() ) { wfSpecialPage(); } else if ( "" != $search ) { if($go) {