3 * Include most things that are needed to make %MediaWiki work.
5 * This file is included by WebStart.php and doMaintenance.php so that both
6 * web and maintenance scripts share a final set up phase to include necessary
7 * files and create global object variables.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 * http://www.gnu.org/copyleft/gpl.html
28 * This file is not a valid entry point, perform no further processing unless
29 * MEDIAWIKI is defined
31 if ( !defined( 'MEDIAWIKI' ) ) {
36 wfProfileIn( $fname );
37 wfProfileIn( $fname . '-defaults' );
39 // Check to see if we are at the file scope
40 if ( !isset( $wgVersion ) ) {
41 echo "Error, Setup.php must be included from the file scope, after DefaultSettings.php\n";
45 // Set various default paths sensibly...
47 if ( $wgScript === false ) {
48 $wgScript = "$wgScriptPath/index$wgScriptExtension";
50 if ( $wgLoadScript === false ) {
51 $wgLoadScript = "$wgScriptPath/load$wgScriptExtension";
54 if ( $wgArticlePath === false ) {
55 if ( $wgUsePathInfo ) {
56 $wgArticlePath = "$wgScript/$1";
58 $wgArticlePath = "$wgScript?title=$1";
62 if ( !empty( $wgActionPaths ) && !isset( $wgActionPaths['view'] ) ) {
63 // 'view' is assumed the default action path everywhere in the code
64 // but is rarely filled in $wgActionPaths
65 $wgActionPaths['view'] = $wgArticlePath;
68 if ( $wgStylePath === false ) {
69 $wgStylePath = "$wgScriptPath/skins";
71 if ( $wgLocalStylePath === false ) {
72 $wgLocalStylePath = "$wgScriptPath/skins";
74 if ( $wgStyleDirectory === false ) {
75 $wgStyleDirectory = "$IP/skins";
77 if ( $wgExtensionAssetsPath === false ) {
78 $wgExtensionAssetsPath = "$wgScriptPath/extensions";
81 if ( $wgLogo === false ) {
82 $wgLogo = "$wgStylePath/common/images/wiki.png";
85 if ( $wgUploadPath === false ) {
86 $wgUploadPath = "$wgScriptPath/images";
88 if ( $wgUploadDirectory === false ) {
89 $wgUploadDirectory = "$IP/images";
91 if ( $wgReadOnlyFile === false ) {
92 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
94 if ( $wgFileCacheDirectory === false ) {
95 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
97 if ( $wgDeletedDirectory === false ) {
98 $wgDeletedDirectory = "{$wgUploadDirectory}/deleted";
101 if ( $wgGitInfoCacheDirectory === false && $wgCacheDirectory !== false ) {
102 $wgGitInfoCacheDirectory = "{$wgCacheDirectory}/gitinfo";
105 // Fix path to icon images after they were moved in 1.24
106 if ( $wgRightsIcon ) {
107 $wgRightsIcon = str_replace(
108 "{$wgStylePath}/common/images/",
109 "{$wgScriptPath}/assets/licenses/",
114 if ( isset( $wgFooterIcons['copyright'] )
115 && isset( $wgFooterIcons['copyright']['copyright'] )
116 && $wgFooterIcons['copyright']['copyright'] === array()
118 if ( $wgCopyrightIcon ) {
119 $wgFooterIcons['copyright']['copyright'] = $wgCopyrightIcon;
120 } elseif ( $wgRightsIcon ||
$wgRightsText ) {
121 $wgFooterIcons['copyright']['copyright'] = array(
122 'url' => $wgRightsUrl,
123 'src' => $wgRightsIcon,
124 'alt' => $wgRightsText,
127 unset( $wgFooterIcons['copyright']['copyright'] );
131 if ( isset( $wgFooterIcons['poweredby'] )
132 && isset( $wgFooterIcons['poweredby']['mediawiki'] )
133 && $wgFooterIcons['poweredby']['mediawiki']['src'] === null
135 $wgFooterIcons['poweredby']['mediawiki']['src'] =
136 "$wgScriptPath/assets/poweredby_mediawiki_88x31.png";
140 * Unconditional protection for NS_MEDIAWIKI since otherwise it's too easy for a
141 * sysadmin to set $wgNamespaceProtection incorrectly and leave the wiki insecure.
143 * Note that this is the definition of editinterface and it can be granted to
144 * all users if desired.
146 $wgNamespaceProtection[NS_MEDIAWIKI
] = 'editinterface';
149 * The canonical names of namespaces 6 and 7 are, as of v1.14, "File"
150 * and "File_talk". The old names "Image" and "Image_talk" are
151 * retained as aliases for backwards compatibility.
153 $wgNamespaceAliases['Image'] = NS_FILE
;
154 $wgNamespaceAliases['Image_talk'] = NS_FILE_TALK
;
157 * Initialise $wgLockManagers to include basic FS version
159 $wgLockManagers[] = array(
160 'name' => 'fsLockManager',
161 'class' => 'FSLockManager',
162 'lockDirectory' => "{$wgUploadDirectory}/lockdir",
164 $wgLockManagers[] = array(
165 'name' => 'nullLockManager',
166 'class' => 'NullLockManager',
170 * Initialise $wgLocalFileRepo from backwards-compatible settings
172 if ( !$wgLocalFileRepo ) {
173 $wgLocalFileRepo = array(
174 'class' => 'LocalRepo',
176 'directory' => $wgUploadDirectory,
177 'scriptDirUrl' => $wgScriptPath,
178 'scriptExtension' => $wgScriptExtension,
179 'url' => $wgUploadBaseUrl ?
$wgUploadBaseUrl . $wgUploadPath : $wgUploadPath,
180 'hashLevels' => $wgHashedUploadDirectory ?
2 : 0,
181 'thumbScriptUrl' => $wgThumbnailScriptPath,
182 'transformVia404' => !$wgGenerateThumbnailOnParse,
183 'deletedDir' => $wgDeletedDirectory,
184 'deletedHashLevels' => $wgHashedUploadDirectory ?
3 : 0
188 * Initialise shared repo from backwards-compatible settings
190 if ( $wgUseSharedUploads ) {
191 if ( $wgSharedUploadDBname ) {
192 $wgForeignFileRepos[] = array(
193 'class' => 'ForeignDBRepo',
195 'directory' => $wgSharedUploadDirectory,
196 'url' => $wgSharedUploadPath,
197 'hashLevels' => $wgHashedSharedUploadDirectory ?
2 : 0,
198 'thumbScriptUrl' => $wgSharedThumbnailScriptPath,
199 'transformVia404' => !$wgGenerateThumbnailOnParse,
200 'dbType' => $wgDBtype,
201 'dbServer' => $wgDBserver,
202 'dbUser' => $wgDBuser,
203 'dbPassword' => $wgDBpassword,
204 'dbName' => $wgSharedUploadDBname,
205 'dbFlags' => ( $wgDebugDumpSql ? DBO_DEBUG
: 0 ) | DBO_DEFAULT
,
206 'tablePrefix' => $wgSharedUploadDBprefix,
207 'hasSharedCache' => $wgCacheSharedUploads,
208 'descBaseUrl' => $wgRepositoryBaseUrl,
209 'fetchDescription' => $wgFetchCommonsDescriptions,
212 $wgForeignFileRepos[] = array(
213 'class' => 'FileRepo',
215 'directory' => $wgSharedUploadDirectory,
216 'url' => $wgSharedUploadPath,
217 'hashLevels' => $wgHashedSharedUploadDirectory ?
2 : 0,
218 'thumbScriptUrl' => $wgSharedThumbnailScriptPath,
219 'transformVia404' => !$wgGenerateThumbnailOnParse,
220 'descBaseUrl' => $wgRepositoryBaseUrl,
221 'fetchDescription' => $wgFetchCommonsDescriptions,
225 if ( $wgUseInstantCommons ) {
226 $wgForeignFileRepos[] = array(
227 'class' => 'ForeignAPIRepo',
228 'name' => 'wikimediacommons',
229 'apibase' => WebRequest
::detectProtocol() === 'https' ?
230 'https://commons.wikimedia.org/w/api.php' :
231 'http://commons.wikimedia.org/w/api.php',
233 'fetchDescription' => true,
234 'descriptionCacheExpiry' => 43200,
235 'apiThumbCacheExpiry' => 86400,
239 * Add on default file backend config for file repos.
240 * FileBackendGroup will handle initializing the backends.
242 if ( !isset( $wgLocalFileRepo['backend'] ) ) {
243 $wgLocalFileRepo['backend'] = $wgLocalFileRepo['name'] . '-backend';
245 foreach ( $wgForeignFileRepos as &$repo ) {
246 if ( !isset( $repo['directory'] ) && $repo['class'] === 'ForeignAPIRepo' ) {
247 $repo['directory'] = $wgUploadDirectory; // b/c
249 if ( !isset( $repo['backend'] ) ) {
250 $repo['backend'] = $repo['name'] . '-backend';
253 unset( $repo ); // no global pollution; destroy reference
255 if ( $wgRCFilterByAge ) {
256 // Trim down $wgRCLinkDays so that it only lists links which are valid
257 // as determined by $wgRCMaxAge.
258 // Note that we allow 1 link higher than the max for things like 56 days but a 60 day link.
259 sort( $wgRCLinkDays );
261 // @codingStandardsIgnoreStart Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
262 for ( $i = 0; $i < count( $wgRCLinkDays ); $i++
) {
263 // @codingStandardsIgnoreEnd
264 if ( $wgRCLinkDays[$i] >= $wgRCMaxAge / ( 3600 * 24 ) ) {
265 $wgRCLinkDays = array_slice( $wgRCLinkDays, 0, $i +
1, false );
272 $wgSkipSkins[] = $wgSkipSkin;
276 // Use a closure to avoid leaking into global state
277 call_user_func( function () use ( $wgValidSkinNames ) {
278 $factory = SkinFactory
::getDefaultInstance();
279 foreach ( $wgValidSkinNames as $name => $skin ) {
280 $factory->register( $name, $skin, function () use ( $name, $skin ) {
281 $class = "Skin$skin";
282 return new $class( $name );
285 // Register a hidden "fallback" skin
286 $factory->register( 'fallback', 'Fallback', function () {
287 return new SkinFallback
;
290 $wgSkipSkins[] = 'fallback';
292 if ( $wgLocalInterwiki ) {
293 array_unshift( $wgLocalInterwikis, $wgLocalInterwiki );
296 // Set default shared prefix
297 if ( $wgSharedPrefix === false ) {
298 $wgSharedPrefix = $wgDBprefix;
301 if ( !$wgCookiePrefix ) {
302 if ( $wgSharedDB && $wgSharedPrefix && in_array( 'user', $wgSharedTables ) ) {
303 $wgCookiePrefix = $wgSharedDB . '_' . $wgSharedPrefix;
304 } elseif ( $wgSharedDB && in_array( 'user', $wgSharedTables ) ) {
305 $wgCookiePrefix = $wgSharedDB;
306 } elseif ( $wgDBprefix ) {
307 $wgCookiePrefix = $wgDBname . '_' . $wgDBprefix;
309 $wgCookiePrefix = $wgDBname;
312 $wgCookiePrefix = strtr( $wgCookiePrefix, '=,; +."\'\\[', '__________' );
314 $wgUseEnotif = $wgEnotifUserTalk ||
$wgEnotifWatchlist;
316 if ( $wgMetaNamespace === false ) {
317 $wgMetaNamespace = str_replace( ' ', '_', $wgSitename );
320 // Default value is either the suhosin limit or -1 for unlimited
321 if ( $wgResourceLoaderMaxQueryLength === false ) {
322 $maxValueLength = ini_get( 'suhosin.get.max_value_length' );
323 $wgResourceLoaderMaxQueryLength = $maxValueLength > 0 ?
$maxValueLength : -1;
327 * Definitions of the NS_ constants are in Defines.php
330 $wgCanonicalNamespaceNames = array(
332 NS_SPECIAL
=> 'Special',
335 NS_USER_TALK
=> 'User_talk',
336 NS_PROJECT
=> 'Project',
337 NS_PROJECT_TALK
=> 'Project_talk',
339 NS_FILE_TALK
=> 'File_talk',
340 NS_MEDIAWIKI
=> 'MediaWiki',
341 NS_MEDIAWIKI_TALK
=> 'MediaWiki_talk',
342 NS_TEMPLATE
=> 'Template',
343 NS_TEMPLATE_TALK
=> 'Template_talk',
345 NS_HELP_TALK
=> 'Help_talk',
346 NS_CATEGORY
=> 'Category',
347 NS_CATEGORY_TALK
=> 'Category_talk',
351 if ( is_array( $wgExtraNamespaces ) ) {
352 $wgCanonicalNamespaceNames = $wgCanonicalNamespaceNames +
$wgExtraNamespaces;
355 // These are now the same, always
356 // To determine the user language, use $wgLang->getCode()
357 $wgContLanguageCode = $wgLanguageCode;
359 // Easy to forget to falsify $wgShowIPinHeader for static caches.
360 // If file cache or squid cache is on, just disable this (DWIMD).
361 // Do the same for $wgDebugToolbar.
362 if ( $wgUseFileCache ||
$wgUseSquid ) {
363 $wgShowIPinHeader = false;
364 $wgDebugToolbar = false;
367 // Doesn't make sense to have if disabled.
368 if ( !$wgEnotifMinorEdits ) {
369 $wgHiddenPrefs[] = 'enotifminoredits';
372 // We always output HTML5 since 1.22, overriding these is no longer supported
373 // we set them here for extensions that depend on its value.
375 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
376 $wgJsMimeType = 'text/javascript';
378 if ( !$wgHtml5Version && $wgAllowRdfaAttributes ) {
379 // see http://www.w3.org/TR/rdfa-in-html/#document-conformance
380 if ( $wgMimeType == 'application/xhtml+xml' ) {
381 $wgHtml5Version = 'XHTML+RDFa 1.0';
383 $wgHtml5Version = 'HTML+RDFa 1.0';
387 // Blacklisted file extensions shouldn't appear on the "allowed" list
388 $wgFileExtensions = array_values( array_diff ( $wgFileExtensions, $wgFileBlacklist ) );
390 if ( $wgInvalidateCacheOnLocalSettingsChange ) {
391 // @codingStandardsIgnoreStart Generic.PHP.NoSilencedErrors.Discouraged - No GlobalFunction here yet.
392 $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime
( "$IP/LocalSettings.php" ) ) );
393 // @codingStandardsIgnoreEnd
396 if ( $wgNewUserLog ) {
397 // Add a new log type
398 $wgLogTypes[] = 'newusers';
399 $wgLogNames['newusers'] = 'newuserlogpage';
400 $wgLogHeaders['newusers'] = 'newuserlogpagetext';
401 $wgLogActionsHandlers['newusers/newusers'] = 'NewUsersLogFormatter';
402 $wgLogActionsHandlers['newusers/create'] = 'NewUsersLogFormatter';
403 $wgLogActionsHandlers['newusers/create2'] = 'NewUsersLogFormatter';
404 $wgLogActionsHandlers['newusers/byemail'] = 'NewUsersLogFormatter';
405 $wgLogActionsHandlers['newusers/autocreate'] = 'NewUsersLogFormatter';
408 if ( $wgPageLanguageUseDB ) {
409 $wgLogTypes[] = 'pagelang';
410 $wgLogActionsHandlers['pagelang/pagelang'] = 'PageLangLogFormatter';
413 if ( $wgCookieSecure === 'detect' ) {
414 $wgCookieSecure = ( WebRequest
::detectProtocol() === 'https' );
417 // Back compatibility for $wgRateLimitLog deprecated with 1.23
418 if ( $wgRateLimitLog && !array_key_exists( 'ratelimit', $wgDebugLogGroups ) ) {
419 $wgDebugLogGroups['ratelimit'] = $wgRateLimitLog;
422 if ( $wgProfileOnly ) {
423 $wgDebugLogGroups['profileoutput'] = $wgDebugLogFile;
424 $wgDebugLogFile = '';
427 wfProfileOut( $fname . '-defaults' );
429 // Disable MWDebug for command line mode, this prevents MWDebug from eating up
430 // all the memory from logging SQL queries on maintenance scripts
431 global $wgCommandLineMode;
432 if ( $wgDebugToolbar && !$wgCommandLineMode ) {
433 wfProfileIn( $fname . '-debugtoolbar' );
435 wfProfileOut( $fname . '-debugtoolbar' );
438 if ( !class_exists( 'AutoLoader' ) ) {
439 require_once "$IP/includes/AutoLoader.php";
442 wfProfileIn( $fname . '-exception' );
443 MWExceptionHandler
::installHandler();
444 wfProfileOut( $fname . '-exception' );
446 wfProfileIn( $fname . '-includes' );
447 require_once "$IP/includes/normal/UtfNormalUtil.php";
448 require_once "$IP/includes/GlobalFunctions.php";
449 require_once "$IP/includes/normal/UtfNormalDefines.php";
450 wfProfileOut( $fname . '-includes' );
452 wfProfileIn( $fname . '-defaults2' );
454 if ( $wgCanonicalServer === false ) {
455 $wgCanonicalServer = wfExpandUrl( $wgServer, PROTO_HTTP
);
459 $serverParts = wfParseUrl( $wgCanonicalServer );
460 if ( $wgServerName !== false ) {
461 wfWarn( '$wgServerName should be derived from $wgCanonicalServer, '
462 . 'not customized. Overwriting $wgServerName.' );
464 $wgServerName = $serverParts['host'];
465 unset( $serverParts );
467 // Set defaults for configuration variables
468 // that are derived from the server name by default
469 if ( $wgEmergencyContact === false ) {
470 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
473 if ( $wgPasswordSender === false ) {
474 $wgPasswordSender = 'apache@' . $wgServerName;
477 if ( $wgSecureLogin && substr( $wgServer, 0, 2 ) !== '//' ) {
478 $wgSecureLogin = false;
479 wfWarn( 'Secure login was enabled on a server that only supports '
480 . 'HTTP or HTTPS. Disabling secure login.' );
483 // Now that GlobalFunctions is loaded, set defaults that depend
485 if ( $wgTmpDirectory === false ) {
486 wfProfileIn( $fname . '-tempDir' );
487 $wgTmpDirectory = wfTempDir();
488 wfProfileOut( $fname . '-tempDir' );
491 wfProfileOut( $fname . '-defaults2' );
492 wfProfileIn( $fname . '-misc1' );
494 // Raise the memory limit if it's too low
498 * Set up the timezone, suppressing the pseudo-security warning in PHP 5.1+
499 * that happens whenever you use a date function without the timezone being
500 * explicitly set. Inspired by phpMyAdmin's treatment of the problem.
502 if ( is_null( $wgLocaltimezone ) ) {
503 wfSuppressWarnings();
504 $wgLocaltimezone = date_default_timezone_get();
508 date_default_timezone_set( $wgLocaltimezone );
509 if ( is_null( $wgLocalTZoffset ) ) {
510 $wgLocalTZoffset = date( 'Z' ) / 60;
513 // Useful debug output
514 if ( $wgCommandLineMode ) {
515 $wgRequest = new FauxRequest( array() );
517 wfDebug( "\n\nStart command line script $self\n" );
519 // Can't stub this one, it sets up $_GET and $_REQUEST in its constructor
520 $wgRequest = new WebRequest
;
522 $debug = "\n\nStart request {$wgRequest->getMethod()} {$wgRequest->getRequestURL()}\n";
524 if ( $wgDebugPrintHttpHeaders ) {
525 $debug .= "HTTP HEADERS:\n";
527 foreach ( $wgRequest->getAllHeaders() as $name => $value ) {
528 $debug .= "$name: $value\n";
534 wfProfileOut( $fname . '-misc1' );
535 wfProfileIn( $fname . '-memcached' );
537 $wgMemc = wfGetMainCache();
538 $messageMemc = wfGetMessageCacheStorage();
539 $parserMemc = wfGetParserCacheStorage();
540 $wgLangConvMemc = wfGetLangConverterCacheStorage();
542 wfDebugLog( 'caches', 'main: ' . get_class( $wgMemc ) .
543 ', message: ' . get_class( $messageMemc ) .
544 ', parser: ' . get_class( $parserMemc ) );
546 wfProfileOut( $fname . '-memcached' );
548 // Most of the config is out, some might want to run hooks here.
549 wfRunHooks( 'SetupAfterCache' );
551 wfProfileIn( $fname . '-session' );
553 if ( !defined( 'MW_NO_SESSION' ) && !$wgCommandLineMode ) {
554 // If session.auto_start is there, we can't touch session name
555 if ( !wfIniGetBool( 'session.auto_start' ) ) {
556 session_name( $wgSessionName ?
$wgSessionName : $wgCookiePrefix . '_session' );
559 if ( $wgRequest->checkSessionCookie() ||
isset( $_COOKIE[$wgCookiePrefix . 'Token'] ) ) {
564 wfProfileOut( $fname . '-session' );
565 wfProfileIn( $fname . '-globals' );
568 * @var Language $wgContLang
570 $wgContLang = Language
::factory( $wgLanguageCode );
571 $wgContLang->initEncoding();
572 $wgContLang->initContLang();
574 // Now that variant lists may be available...
575 $wgRequest->interpolateTitle();
580 $wgUser = RequestContext
::getMain()->getUser(); // BackCompat
583 * @var Language $wgLang
585 $wgLang = new StubUserLang
;
588 * @var OutputPage $wgOut
590 $wgOut = RequestContext
::getMain()->getOutput(); // BackCompat
593 * @var Parser $wgParser
595 $wgParser = new StubObject( 'wgParser', $wgParserConf['class'], array( $wgParserConf ) );
597 if ( !is_object( $wgAuth ) ) {
598 $wgAuth = new AuthPlugin
;
599 wfRunHooks( 'AuthPluginSetup', array( &$wgAuth ) );
603 * @var Title $wgTitle
608 * @deprecated since 1.24 Use DeferredUpdates::addUpdate instead
611 $wgDeferredUpdateList = array();
613 // Disable all other email settings automatically if $wgEnableEmail
614 // is set to false. - bug 63678
615 if ( !$wgEnableEmail ) {
616 $wgAllowHTMLEmail = false;
617 $wgEmailAuthentication = false; // do not require auth if you're not sending email anyway
618 $wgEnableUserEmail = false;
619 $wgEnotifFromEditor = false;
620 $wgEnotifImpersonal = false;
621 $wgEnotifMaxRecips = 0;
622 $wgEnotifMinorEdits = false;
623 $wgEnotifRevealEditorAddress = false;
624 $wgEnotifUseJobQ = false;
625 $wgEnotifUseRealName = false;
626 $wgEnotifUserTalk = false;
627 $wgEnotifWatchlist = false;
628 unset( $wgGroupPermissions['user']['sendemail'] );
629 $wgUserEmailUseReplyTo = false;
630 $wgUsersNotifiedOnAllChanges = array();
633 wfProfileOut( $fname . '-globals' );
634 wfProfileIn( $fname . '-extensions' );
636 // Extension setup functions for extensions other than skins
637 // Entries should be added to this variable during the inclusion
638 // of the extension file. This allows the extension to perform
639 // any necessary initialisation in the fully initialised environment
640 foreach ( $wgExtensionFunctions as $func ) {
641 // Allow closures in PHP 5.3+
642 if ( is_object( $func ) && $func instanceof Closure
) {
643 $profName = $fname . '-extensions-closure';
644 } elseif ( is_array( $func ) ) {
645 if ( is_object( $func[0] ) ) {
646 $profName = $fname . '-extensions-' . get_class( $func[0] ) . '::' . $func[1];
648 $profName = $fname . '-extensions-' . implode( '::', $func );
651 $profName = $fname . '-extensions-' . strval( $func );
654 wfProfileIn( $profName );
655 call_user_func( $func );
656 wfProfileOut( $profName );
659 wfDebug( "Fully initialised\n" );
660 $wgFullyInitialised = true;
662 wfProfileOut( $fname . '-extensions' );
663 wfProfileOut( $fname );