summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/index.php b/index.php
index 964770ee..e3b753fa 100644
--- a/index.php
+++ b/index.php
@@ -14,6 +14,11 @@ OutputPage::setEncodings(); # Not really used yet
$action = $wgRequest->getVal( 'action', 'view' );
$title = $wgRequest->getVal( 'title' );
+$wgTitle = $mediaWiki->checkInitialQueries( $title,$action,$wgOut, $wgRequest, $wgContLang );
+if ($wgTitle == NULL) {
+ unset( $wgTitle );
+}
+
#
# Send Ajax requests to the Ajax dispatcher.
#
@@ -26,10 +31,6 @@ if ( $wgUseAjax && $action == 'ajax' ) {
exit;
}
-$wgTitle = $mediaWiki->checkInitialQueries( $title,$action,$wgOut, $wgRequest, $wgContLang );
-if ($wgTitle == NULL) {
- unset( $wgTitle );
-}
wfProfileOut( 'main-misc-setup' );