MediaWiki REL1_33
load.php
Go to the documentation of this file.
1<?php
26
27// This endpoint is supposed to be independent of request cookies and other
28// details of the session. Enforce this constraint with respect to session use.
29define( 'MW_NO_SESSION', 1 );
30
31require __DIR__ . '/includes/WebStart.php';
32
33// URL safety checks
34if ( !$wgRequest->checkUrlExtension() ) {
35 return;
36}
37
38// Disable ChronologyProtector so that we don't wait for unrelated MediaWiki
39// writes when getting database connections for ResourceLoader. (T192611)
40MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection();
41
42$resourceLoader = MediaWikiServices::getInstance()->getResourceLoader();
44
45// Respond to ResourceLoader request
46$resourceLoader->respond( $context );
47
48Profiler::instance()->setTemplated( true );
49
51$mediawiki->doPostOutputShutdown( 'fast' );
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
if(! $wgDBerrorLogTZ) $wgRequest
Definition Setup.php:728
MediaWikiServices is the service locator for the application scope of MediaWiki.
Object passed around to modules which contains information about the state of a specific loader reque...
$resourceLoader
Definition load.php:42
$context
Definition load.php:43
$mediawiki
Definition load.php:50
A helper class for throttling authentication attempts.