MDL-21938 support for json renderer and error handler

This commit is contained in:
Petr Skoda
2010-03-28 09:05:47 +00:00
parent c6d2a6f4aa
commit 1adaa40466
6 changed files with 113 additions and 8 deletions
+5
View File
@@ -207,6 +207,11 @@ if (!defined('CLI_SCRIPT')) { // CLI_SCRIPT might be defined in 'fake' CLI scrip
}
}
// Detect ajax scripts - they are similar to CLI because we can not redirect, output html, etc.
if (!defined('AJAX_SCRIPT')) {
define('AJAX_SCRIPT', false);
}
// sometimes default PHP settings are borked on shared hosting servers, I wonder why they have to do that??
@ini_set('precision', 14); // needed for upgrades and gradebook