dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove deprecated Language::getLangObj()
[lhc/web/wiklou.git]
/
load.php
diff --git
a/load.php
b/load.php
index
43c2faf
..
d30a348
100644
(file)
--- a/
load.php
+++ b/
load.php
@@
-24,19
+24,21
@@
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\Logger\LoggerFactory;
-require __DIR__ . '/includes/WebStart.php';
+// This endpoint is supposed to be independent of request cookies and other
+// details of the session. Log warnings for violations of the no-session
+// constraint.
+define( 'MW_NO_SESSION', 'warn' );
+require __DIR__ . '/includes/WebStart.php';
// URL safety checks
if ( !$wgRequest->checkUrlExtension() ) {
return;
}
// URL safety checks
if ( !$wgRequest->checkUrlExtension() ) {
return;
}
-// Respond to resource loading request.
-// foo()->bar() syntax is not supported in PHP4, and this file needs to *parse* in PHP4.
-$configFactory = ConfigFactory::getDefaultInstance();
+// Respond to ResourceLoader request
$resourceLoader = new ResourceLoader(
$resourceLoader = new ResourceLoader(
-
$configFactory
->makeConfig( 'main' ),
+
ConfigFactory::getDefaultInstance()
->makeConfig( 'main' ),
LoggerFactory::getInstance( 'resourceloader' )
);
$resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) );
LoggerFactory::getInstance( 'resourceloader' )
);
$resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) );