Merge branch 'MDL-39967-master' of git://github.com/danpoltawski/moodle
This commit is contained in:
+1
-15
@@ -72,24 +72,10 @@ if (!empty($CFG->cronremotepassword)) {
|
||||
}
|
||||
|
||||
// send mime type and encoding
|
||||
if (check_browser_version('MSIE')) {
|
||||
//ugly IE hack to work around downloading instead of viewing
|
||||
@header('Content-Type: text/html; charset=utf-8');
|
||||
echo "<xmp>"; //<pre> is not good enough for us here
|
||||
} else {
|
||||
//send proper plaintext header
|
||||
@header('Content-Type: text/plain; charset=utf-8');
|
||||
}
|
||||
@header('Content-Type: text/plain; charset=utf-8');
|
||||
|
||||
// we do not want html markup in emulated CLI
|
||||
@ini_set('html_errors', 'off');
|
||||
|
||||
// execute the cron
|
||||
cron_run();
|
||||
|
||||
// finish the IE hack
|
||||
if (check_browser_version('MSIE')) {
|
||||
echo "</xmp>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user