MDL-24276 improved coding style

This commit is contained in:
Petr Skoda
2010-09-19 18:49:31 +00:00
parent 7c109ea3f0
commit e691a373b5
2 changed files with 6 additions and 5 deletions
+4 -1
View File
@@ -75,7 +75,10 @@ if (check_browser_version('MSIE')) {
}
// no more headers and buffers
while(@ob_end_flush());
@ob_implicit_flush(true);
while(ob_get_level()) {
ob_end_clean();
}
// execute the cron
cron_run();
+2 -4
View File
@@ -5,11 +5,9 @@
// extra whitespace test - intentionally breaks cookieless mode
$extraws = '';
while (true) {
while (ob_get_level()) {
$extraws .= ob_get_contents();
if (!@ob_end_clean()) {
break;
}
ob_end_clean();
}
require_once($CFG->libdir.'/adminlib.php');