MDL-30294 prevent notices and errors in theme files content

Theme images, css and JS are broken by PHP error messages which creates major problems for production sites with enabled displaying of errors because the files are cached indefinitely. It is better to send the errors and notices to logs only, in any case all developers must learn to use error logs.
This commit is contained in:
Petr Skoda
2011-11-19 11:23:28 +01:00
parent fe41ba7489
commit c198390a49
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -24,6 +24,10 @@
*/
// disable moodle specific debug messages and any errors in output,
// comment out when debugging or better look into error log!
define('NO_DEBUG_DISPLAY', true);
// we need just the values from config.php and minlib.php
define('ABORT_AFTER_CONFIG', true);
require('../config.php'); // this stops immediately at the beginning of lib/setup.php