mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/9679] phpBB offers to notify poster even if notification is disabled
The "notify user" check box would not do anything if checked in this case, but it was still presented. The checkbox is now only shown if there are notification options enabled. PHPBB3-9679
This commit is contained in:
parent
fc25fe694a
commit
8ea0309ed1
1 changed files with 11 additions and 8 deletions
|
@ -691,6 +691,8 @@ function approve_post($post_id_list, $id, $mode)
|
||||||
{
|
{
|
||||||
$show_notify = false;
|
$show_notify = false;
|
||||||
|
|
||||||
|
if ($config['email_enable'] || $config['jab_enable'])
|
||||||
|
{
|
||||||
foreach ($post_info as $post_data)
|
foreach ($post_info as $post_data)
|
||||||
{
|
{
|
||||||
if ($post_data['poster_id'] == ANONYMOUS)
|
if ($post_data['poster_id'] == ANONYMOUS)
|
||||||
|
@ -703,6 +705,7 @@ function approve_post($post_id_list, $id, $mode)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'S_NOTIFY_POSTER' => $show_notify,
|
'S_NOTIFY_POSTER' => $show_notify,
|
||||||
|
|
Loading…
Add table
Reference in a new issue