[svn r11018] fix a bug when answering a thread in the lp

skala
Eric Marguin 18 years ago
parent 29f8f76c4e
commit cf2db86f67
  1. 5
      main/forum/forumfunction.inc.php

@ -1713,6 +1713,7 @@ function store_reply($values)
global $_user;
global $_course;
global $current_forum;
global $origin;
$post_date=date('Y-m-d H:i:s');
if ($current_forum['approval_direct_post']=='1' AND !api_is_allowed_to_edit())
@ -1753,8 +1754,8 @@ function store_reply($values)
{
$message.=get_lang('MessageHasToBeApproved').'<br />';
}
$message.=get_lang('ReturnTo').' <a href="viewforum.php?forum='.$values['forum_id'].'">'.get_lang('Forum').'</a><br />';
$message.=get_lang('ReturnTo').' <a href="viewthread.php?forum='.$values['forum_id'].'&amp;thread='.$values['thread_id'].'">'.get_lang('Message').'</a>';
$message.=get_lang('ReturnTo').' <a href="viewforum.php?forum='.$values['forum_id'].'&origin='.$origin.'">'.get_lang('Forum').'</a><br />';
$message.=get_lang('ReturnTo').' <a href="viewthread.php?forum='.$values['forum_id'].'&amp;thread='.$values['thread_id'].'&origin='.$origin.'">'.get_lang('Message').'</a>';
send_notification_mails($values['thread_id'], $values);

Loading…
Cancel
Save