From: Brion Vibber Date: Fri, 11 Jun 2004 23:29:56 +0000 (+0000) Subject: Undo change that stopped Wikipedia from running at all X-Git-Tag: 1.5.0alpha1~2905 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=e96217fc1c5b94c986ad10a964a63b28e7d8a233;p=lhc%2Fweb%2Fwiklou.git Undo change that stopped Wikipedia from running at all --- diff --git a/includes/Setup.php b/includes/Setup.php index d9b34040d2..35b5786130 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -58,6 +58,7 @@ require_once( 'BlockCache.php' ); require_once( 'Parser.php' ); require_once( 'ParserCache.php' ); require_once( 'WebRequest.php' ); +require_once( 'SpecialPage.php' ); $wgRequest = new WebRequest(); @@ -219,6 +220,10 @@ $wgParserCache = new ParserCache(); $wgParser = new Parser(); $wgOut->setParserOptions( ParserOptions::newFromUser( $wgUser ) ); +if ( !$wgAllowSysopQueries ) { + SpecialPage::removePage( 'Asksql' ); +} + # Placeholders in case of DB error $wgTitle = Title::newFromText( wfMsg( 'badtitle' ) ); $wgArticle = new Article($wgTitle); diff --git a/index.php b/index.php index 3eb25720a6..f980599bfd 100644 --- a/index.php +++ b/index.php @@ -77,9 +77,6 @@ if ( $search = $wgRequest->getText( 'search' ) ) { /* redirect to canonical url, make it a 301 to allow caching */ $wgOut->redirect( $wgTitle->getFullURL(), '301'); } else if ( Namespace::getSpecial() == $wgTitle->getNamespace() ) { - # actions that need to be made when we have a special pages - require_once( 'includes/SpecialPage.php' ); - if ( !$wgAllowSysopQueries ) {SpecialPage::removePage( 'Asksql' ); } SpecialPage::executePath( $wgTitle ); } else { if ( Namespace::getMedia() == $wgTitle->getNamespace() ) {