Commit 684680ac authored by Dries's avatar Dries
Browse files

Issue #1428032 by hefox: default drupal_set_message() to FALSE instead of TRUE.

parent ab6b52f2
......@@ -1780,7 +1780,7 @@ function watchdog($type, $message, array $variables = array(), $severity = WATCH
* - 'error'
* @param bool $repeat
* (optional) If this is FALSE and the message is already set, then the
* message won't be repeated. Defaults to TRUE.
* message won't be repeated. Defaults to FALSE.
*
* @return array|null
* A multidimensional array with keys corresponding to the set message types.
......@@ -1790,7 +1790,7 @@ function watchdog($type, $message, array $variables = array(), $severity = WATCH
* @see drupal_get_messages()
* @see theme_status_messages()
*/
function drupal_set_message($message = NULL, $type = 'status', $repeat = TRUE) {
function drupal_set_message($message = NULL, $type = 'status', $repeat = FALSE) {
if ($message) {
if (!isset($_SESSION['messages'][$type])) {
$_SESSION['messages'][$type] = array();
......
......@@ -264,7 +264,7 @@ function _drupal_log_error($error, $fatal = FALSE) {
// Generate a backtrace containing only scalar argument values.
$message .= '<pre class="backtrace">' . format_backtrace($backtrace) . '</pre>';
}
drupal_set_message($message, $class);
drupal_set_message($message, $class, TRUE);
}
if ($fatal) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment