mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-25314 adding some header/session related notes
This commit is contained in:
parent
5e21cac896
commit
871ed45870
2 changed files with 4 additions and 1 deletions
|
@ -345,6 +345,7 @@ $CFG->httpswwwroot = $CFG->wwwroot;
|
||||||
require_once($CFG->libdir .'/setuplib.php'); // Functions that MUST be loaded first
|
require_once($CFG->libdir .'/setuplib.php'); // Functions that MUST be loaded first
|
||||||
|
|
||||||
if (NO_OUTPUT_BUFFERING) {
|
if (NO_OUTPUT_BUFFERING) {
|
||||||
|
// we have to call this always before starting session because it discards headers!
|
||||||
disable_output_buffering();
|
disable_output_buffering();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -964,7 +964,9 @@ function get_real_size($size = 0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to disable all output buffering
|
* Try to disable all output buffering and purge
|
||||||
|
* all headers.
|
||||||
|
*
|
||||||
* @private to be called only from lib/setup.php !
|
* @private to be called only from lib/setup.php !
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue