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
Merge "Highlight new requirement"
[lhc/web/wiklou.git]
/
load.php
diff --git
a/load.php
b/load.php
index
d30a348
..
c832237
100644
(file)
--- a/
load.php
+++ b/
load.php
@@
-25,9
+25,8
@@
use MediaWiki\Logger\LoggerFactory;
// This endpoint is supposed to be independent of request cookies and other
use MediaWiki\Logger\LoggerFactory;
// 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' );
+// details of the session. Enforce this constraint with respect to session use.
+define( 'MW_NO_SESSION', 1 );
require __DIR__ . '/includes/WebStart.php';
require __DIR__ . '/includes/WebStart.php';
@@
-36,12
+35,15
@@
if ( !$wgRequest->checkUrlExtension() ) {
return;
}
return;
}
-//
Respond to ResourceLoader request
+//
Set up ResourceLoader
$resourceLoader = new ResourceLoader(
ConfigFactory::getDefaultInstance()->makeConfig( 'main' ),
LoggerFactory::getInstance( 'resourceloader' )
);
$resourceLoader = new ResourceLoader(
ConfigFactory::getDefaultInstance()->makeConfig( 'main' ),
LoggerFactory::getInstance( 'resourceloader' )
);
-$resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) );
+$context = new ResourceLoaderContext( $resourceLoader, $wgRequest );
+
+// Respond to ResourceLoader request
+$resourceLoader->respond( $context );
Profiler::instance()->setTemplated( true );
Profiler::instance()->setTemplated( true );