X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=profileinfo.php;h=83ae1935df1719bb862b28a745f9239f45986f41;hb=8bd192cefc98af487cf68b81ae093d9af6d0be4e;hp=95636093c65a68c122d72709d1ed58c3f98aa4d3;hpb=734ca2b4d2a1246fb0ea1e54b861ab423ab5e257;p=lhc%2Fweb%2Fwiklou.git diff --git a/profileinfo.php b/profileinfo.php index 95636093c6..83ae1935df 100644 --- a/profileinfo.php +++ b/profileinfo.php @@ -25,6 +25,11 @@ * @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; @@ -145,7 +150,7 @@ if ( !$wgEnableProfileInfo ) { exit( 1 ); } -$dbr = wfGetDB( DB_SLAVE ); +$dbr = wfGetDB( DB_REPLICA ); if ( !$dbr->tableExists( 'profiling' ) ) { echo '

No profiling table exists, so we can\'t show you anything.

'