MDL-25314 coding style improvement

This commit is contained in:
Petr Skoda
2010-11-20 03:56:34 +00:00
parent 596c71156d
commit 116ee3e433
+2 -2
View File
@@ -1480,13 +1480,13 @@ function send_file_not_found() {
* @return void
*/
function prepare_file_sending() {
$olddebug = error_reporting(0);
// We need to be able to send headers
if (headers_sent()) {
throw new file_serving_exception('Headers already sent, can not serve file, this is definitely a server configuration issue!');
}
$olddebug = error_reporting(0);
// this is weird, but browser that do not support gzip or deflate have session problems here,
// let's try to work around it
$bugalert = false;