MDL-24276 improved coding style
This commit is contained in:
+4
-1
@@ -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
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user