Skip to content

Commit

Permalink
Forum plugin - Fixed notification option not showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
Moc committed Oct 2, 2019
1 parent 43b12c4 commit e67cf48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e107_plugins/forum/shortcodes/batch/post_shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,13 @@ function sc_noemotes()

function sc_forum_post_email_notify()
{


global $threadInfo, $action, $eaction;

$pref = e107::getPlugPref('forum');

if($eaction == true) { return ; }
if (vartrue($pref['notify']) && $action == 'nt' && USER)

if (vartrue($pref['notify']) && $this->var['action'] == 'nt' && USER)
{
if(isset($_POST['fpreview']))
{
Expand All @@ -507,6 +506,7 @@ function sc_forum_post_email_notify()
}
return "<br /><input type='checkbox' name='notify' value='1' {$chk} />&nbsp;<span class='defaulttext'>".LAN_FORUM_3040."</span>";
}

return '';
}

Expand Down

1 comment on commit e67cf48

@Moc
Copy link
Member Author

@Moc Moc commented on e67cf48 Oct 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #1343

Please sign in to comment.