$fname = 'Setup.php';
wfProfileIn( $fname );
+wfProfileIn( $fname . '-defaults' );
// Check to see if we are at the file scope
if ( !isset( $wgVersion ) ) {
}
unset( $repo ); // no global pollution; destroy reference
-if ( is_null( $wgEnableAutoRotation ) ) {
- // Only enable auto-rotation when the bitmap handler can rotate
- $wgEnableAutoRotation = BitmapHandler::canRotate();
-}
-
if ( $wgRCFilterByAge ) {
# # Trim down $wgRCLinkDays so that it only lists links which are valid
# # as determined by $wgRCMaxAge.
);
}
+wfProfileOut( $fname . '-defaults' );
+
// Disable MWDebug for command line mode, this prevents MWDebug from eating up
// all the memory from logging SQL queries on maintenance scripts
global $wgCommandLineMode;
if ( $wgDebugToolbar && !$wgCommandLineMode ) {
+ wfProfileIn( $fname . '-debugtoolbar' );
MWDebug::init();
+ wfProfileOut( $fname . '-debugtoolbar' );
}
if ( !class_exists( 'AutoLoader' ) ) {
wfProfileIn( $fname . '-includes' );
require_once "$IP/includes/normal/UtfNormalUtil.php";
require_once "$IP/includes/GlobalFunctions.php";
-require_once "$IP/includes/ProxyTools.php";
require_once "$IP/includes/normal/UtfNormalDefines.php";
wfProfileOut( $fname . '-includes' );
+wfProfileIn( $fname . '-defaults2' );
if ( $wgSecureLogin && substr( $wgServer, 0, 2 ) !== '//' ) {
$wgSecureLogin = false;
wfWarn( 'Secure login was enabled on a server that only supports HTTP or HTTPS. Disabling secure login.' );
# Now that GlobalFunctions is loaded, set defaults that depend
# on it.
if ( $wgTmpDirectory === false ) {
+ wfProfileIn( $fname . '-tempDir' );
$wgTmpDirectory = wfTempDir();
+ wfProfileOut( $fname . '-tempDir' );
}
if ( $wgCanonicalServer === false ) {
);
}
+wfProfileOut( $fname . '-defaults2' );
wfProfileIn( $fname . '-misc1' );
# Raise the memory limit if it's too low