MDL-51603 report_log: Allow streaming downloads

This commit is contained in:
Brendan Heywood 2016-04-11 14:18:18 +10:00
parent 5684cc2d1e
commit 1e29afd4ea

View File

@ -22,6 +22,10 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */
if (!empty($_GET['download'])) {
define('NO_OUTPUT_BUFFERING', true);
}
require('../../config.php'); require('../../config.php');
require_once($CFG->dirroot.'/course/lib.php'); require_once($CFG->dirroot.'/course/lib.php');
require_once($CFG->dirroot.'/report/log/locallib.php'); require_once($CFG->dirroot.'/report/log/locallib.php');