require_once( 'GlobalFunctions.php' );
require_once( 'Hooks.php' );
require_once( 'Namespace.php' );
-require_once( 'RecentChange.php' );
+require_once( 'RecentChange.php' );
require_once( 'User.php' );
require_once( 'Skin.php' );
require_once( 'OutputPage.php' );
wfDebug( $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . "\n" );
}
-# Disable linkscc except if the old existence check method is enabled
-if (!$wgUseOldExistenceCheck) {
- $wgEnablePersistentLC = false;
-}
-
if ( $wgSkipSkin ) {
$wgSkipSkins[] = $wgSkipSkin;
}
+$wgUseEnotif = $wgEnotifUserTalk || $wgEnotifWatchlist;
+
wfProfileOut( $fname.'-misc1' );
wfProfileIn( $fname.'-memcached' );
$messageMemc =& wfGetMessageCacheStorage();
$parserMemc =& wfGetParserCacheStorage();
-wfDebug( 'Main cache: ' . get_class( $wgMemc ) .
- "\nMessage cache: " . get_class( $messageMemc ) .
+wfDebug( 'Main cache: ' . get_class( $wgMemc ) .
+ "\nMessage cache: " . get_class( $messageMemc ) .
"\nParser cache: " . get_class( $parserMemc ) . "\n" );
wfProfileOut( $fname.'-memcached' );
wfProfileIn( $fname.'-database' );
if ( !$wgDBservers ) {
- $wgDBservers = array(array(
+ $wgDBservers = array(array(
'host' => $wgDBserver,
'user' => $wgDBuser,
'password' => $wgDBpassword,
require_once( "$IP/languages/Language.php" );
-wfProfileOut( $fname.'-language1' );
-wfProfileIn( $fname.'-User' );
-
-# Skin setup functions
-# Entries can be added to this variable during the inclusion
-# of the extension file. Skins can then perform any necessary initialisation.
-foreach ( $wgSkinExtensionFunctions as $func ) {
- $func();
-}
-
-if( !is_object( $wgAuth ) ) {
- require_once( 'AuthPlugin.php' );
- $wgAuth = new AuthPlugin();
-}
-
-if( $wgCommandLineMode ) {
- # Used for some maintenance scripts; user session cookies can screw things up
- # when the database is in an in-between state.
- $wgUser = new User();
- # Prevent loading User settings from the DB.
- $wgUser->setLoaded( true );
-} else {
- $wgUser = User::loadFromSession();
-}
-
-wfProfileOut( $fname.'-User' );
-wfProfileIn( $fname.'-language2' );
-
function setupLangObj(&$langclass) {
global $IP;
$wgContLang = setupLangObj( $wgContLangClass );
$wgContLang->initEncoding();
-// set default user option from content language
-if( !$wgUser->mDataLoaded ) {
- $wgUser->loadDefaultFromLanguage();
+wfProfileOut( $fname.'-language1' );
+wfProfileIn( $fname.'-User' );
+
+# Skin setup functions
+# Entries can be added to this variable during the inclusion
+# of the extension file. Skins can then perform any necessary initialisation.
+foreach ( $wgSkinExtensionFunctions as $func ) {
+ $func();
+}
+
+if( !is_object( $wgAuth ) ) {
+ require_once( 'AuthPlugin.php' );
+ $wgAuth = new AuthPlugin();
}
+if( $wgCommandLineMode ) {
+ # Used for some maintenance scripts; user session cookies can screw things up
+ # when the database is in an in-between state.
+ $wgUser = new User();
+ # Prevent loading User settings from the DB.
+ $wgUser->setLoaded( true );
+} else {
+ $wgUser = User::loadFromSession();
+}
+
+wfProfileOut( $fname.'-User' );
+wfProfileIn( $fname.'-language2' );
+
// wgLanguageCode now specifically means the UI language
$wgLanguageCode = $wgUser->getOption('language');
# Validate $wgLanguageCode, which will soon be sent to an eval()
# SEARCH INDEX UPDATES, AND MANY MANY THINGS.
# DO NOT USE THIS MODE EXCEPT FOR TESTING RIGHT NOW.
#
-# To disable it, the easiest thing could be to uncomment the
+# To disable it, the easiest thing could be to uncomment the
# following; they should effectively disable the UI switch functionality
#
# $wgLangClass = $wgContLangClass;
# $wgLanguageCode = $wgContLanguageCode;
# $wgLang = $wgContLang;
#
-# TODO: Need to change reference to $wgLang to $wgContLang at proper
+# TODO: Need to change reference to $wgLang to $wgContLang at proper
# places, including namespaces, dates in signatures, magic words,
# and links
#
wfProfileIn( $fname.'-extensions' );
# Extension setup functions for extensions other than skins
-# Entries should be added to this variable during the inclusion
-# of the extension file. This allows the extension to perform
+# Entries should be added to this variable during the inclusion
+# of the extension file. This allows the extension to perform
# any necessary initialisation in the fully initialised environment
foreach ( $wgExtensionFunctions as $func ) {
$func();