Prevent warnings when buffering is disabled

This commit is contained in:
Bartek Fabiszewski 2017-06-24 11:58:40 +02:00
parent 0d2c0033c9
commit 8371df481d

View File

@ -18,8 +18,9 @@
*/
if (defined('headless')) {
ob_get_contents();
if (ob_get_level()) {
ob_end_clean();
}
error_reporting(0);
}
define('ROOT_DIR', __DIR__);