From 16a74059bd0fabf72e61b286c2b332b38a6c2b15 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 12 Jun 2004 01:31:00 +0000 Subject: [PATCH] recommiting specialpages loading fix as the BoardVote extension as now been fixed --- includes/Setup.php | 5 ----- index.php | 3 +++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/Setup.php b/includes/Setup.php index 35b5786130..d9b34040d2 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -58,7 +58,6 @@ require_once( 'BlockCache.php' ); require_once( 'Parser.php' ); require_once( 'ParserCache.php' ); require_once( 'WebRequest.php' ); -require_once( 'SpecialPage.php' ); $wgRequest = new WebRequest(); @@ -220,10 +219,6 @@ $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 f980599bfd..3eb25720a6 100644 --- a/index.php +++ b/index.php @@ -77,6 +77,9 @@ 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() ) { -- 2.20.1