Commit bca1f324 authored by greggles's avatar greggles

bug #306971 by greggles and Dave Reid: incorrect watchdog parameters

parent 0a0c1483
......@@ -346,17 +346,17 @@ function _comment_notify_mailalert($comment) {
$sent_to[] = $mail;
if ($alert->uid != 0) {
$watchdog_message = t('Notified: <a href="!url">@user_mail</a>',
array('!url' => url('user/'. $alert->uid .'/edit'), '@user_mail' => $mail)) ;
$watchdog_message = 'Notified: <a href="!url">@user_mail</a>';
}
else {
$watchdog_message = t('Notified @user_mail', array('@user_mail' => $mail));
$watchdog_message = 'Notified @user_mail';
}
// Add an entry to the watchdog log.
watchdog('comment_notify', $watchdog_message,
watchdog('comment_notify', $watchdog_message, array('!url' => url('user/'. $alert->uid .'/edit'), '@user_mail' => $mail),
WATCHDOG_NOTICE, l(t('source comment'), 'node/'. $nid, array('fragment' => 'comment-'. $alert->cid)));
// Add an entry to the watchdog log.
// revert to previous (site default) locale
$language = $initial_language;
}
......
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