MDL-30292 rework trailing whitespace test

Now compatible with zlib compression.
This commit is contained in:
Petr Skoda 2011-12-10 20:33:51 +01:00
parent f89a83b87b
commit 14074ef7c6

View File

@ -25,13 +25,7 @@
ob_start(); //for whitespace test
require('../../../config.php');
// extra whitespace test - intentionally breaks cookieless mode
$extraws = '';
while (ob_get_level()) {
$extraws .= ob_get_contents();
ob_end_clean();
}
$extraws = ob_get_clean();
require_once($CFG->libdir.'/adminlib.php');