Skip to content

Commit

Permalink
MDL-32612 respect NO_DEBUG_DISPLAY in scripts that need only config.php
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Apr 28, 2012
1 parent aa753ac commit 463a987
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@
} else {
error_reporting(0);
}
if (empty($CFG->debugdisplay)) {
if (NO_DEBUG_DISPLAY) {
// Some parts of Moodle cannot display errors and debug at all.
ini_set('display_errors', '0');
ini_set('log_errors', '1');
} else if (empty($CFG->debugdisplay)) {
ini_set('display_errors', '0');
ini_set('log_errors', '1');
} else {
Expand Down

0 comments on commit 463a987

Please sign in to comment.