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
Fix tests for I7afaa955a4b393ef00b11e420709bd62b84fbc71
[lhc/web/wiklou.git]
/
profileinfo.php
diff --git
a/profileinfo.php
b/profileinfo.php
index
9563609
..
83ae193
100644
(file)
--- a/
profileinfo.php
+++ b/
profileinfo.php
@@
-25,6
+25,11
@@
* @file
*/
* @file
*/
+// 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' );
+
ini_set( 'zlib.output_compression', 'off' );
$wgEnableProfileInfo = false;
ini_set( 'zlib.output_compression', 'off' );
$wgEnableProfileInfo = false;
@@
-145,7
+150,7
@@
if ( !$wgEnableProfileInfo ) {
exit( 1 );
}
exit( 1 );
}
-$dbr = wfGetDB( DB_
SLAVE
);
+$dbr = wfGetDB( DB_
REPLICA
);
if ( !$dbr->tableExists( 'profiling' ) ) {
echo '<p>No <code>profiling</code> table exists, so we can\'t show you anything.</p>'
if ( !$dbr->tableExists( 'profiling' ) ) {
echo '<p>No <code>profiling</code> table exists, so we can\'t show you anything.</p>'