Skip to content

Commit

Permalink
MDL-20695 can not use trigger_error() for informing users about probl…
Browse files Browse the repository at this point in the history
…ems in config.php, no need to log these
  • Loading branch information
skodak committed Oct 31, 2009
1 parent 2e9b772 commit ccda6d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@
define('NO_DEBUG_DISPLAY', false);
}

/// wwwroot is mandatory
if (!isset($CFG->wwwroot)) {
trigger_error('Fatal: $CFG->wwwroot is not configured! Exiting.');
die;
}
// wwwroot is mandatory
if (!isset($CFG->wwwroot)) {
// trigger_error() is not correct here, no need to log this
die('Fatal: $CFG->wwwroot is not configured! Exiting.');
}

/// Detect CLI scripts - CLI scripts are executed from command line, do not have session and we do not want HTML in output
if (!defined('CLI_SCRIPT')) { // CLI_SCRIPT might be defined in 'fake' CLI scripts like admin/cron.php
Expand Down

0 comments on commit ccda6d6

Please sign in to comment.