Wikia code/index.php
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. The information shown below refers to the now unmaintained 1.16 MediaWiki release. The current stable release number is 1.43.0. |
--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\index.php 2011-07-18 22:35:03.418945300 +0100
+++ D:\Programming\SVN\wikia\trunk\index.php 2011-08-17 15:04:57.495117200 +0100
@@ -1,5 +1,7 @@
<?php
-
+# Geo redirect
+$preIP = dirname( __FILE__ );
+require_once ("$preIP/extensions/wikia/LangRedirect/LangRedirect.php") ;
/**
* This is the main web entry point for MediaWiki.
*
@@ -38,9 +40,7 @@
# Initialise common code
-$preIP = dirname( __FILE__ );
require_once( "$preIP/includes/WebStart.php" );
-
# Initialize MediaWiki base class
require_once( "$preIP/includes/Wiki.php" );
$mediaWiki = new MediaWiki();
@@ -45,6 +45,7 @@
require_once( "$preIP/includes/Wiki.php" );
$mediaWiki = new MediaWiki();
+wfAppendTimerHeader('AS', $wgRequestTime, true);
wfProfileIn( 'main-misc-setup' );
OutputPage::setEncodings(); # Not really used yet
@@ -65,6 +66,11 @@
wfProfileOut( 'main-misc-setup' );
+// Wikia change -- Send a more meaningful transaction name to newrelic
+if (function_exists('newrelic_name_transaction')) {
+ newrelic_name_transaction("$wgDBname/$action");
+}
+
#
# Send Ajax requests to the Ajax dispatcher.
#