1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Forum plugin - Fixed notification option not showing up

This commit is contained in:
Tijn Kuyper
2019-10-02 11:07:00 +02:00
parent 43b12c415d
commit e67cf48c84

View File

@@ -480,14 +480,13 @@ class plugin_forum_post_shortcodes extends e_shortcode
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']))
{
@@ -507,6 +506,7 @@ class plugin_forum_post_shortcodes extends e_shortcode
}
return "<br /><input type='checkbox' name='notify' value='1' {$chk} />&nbsp;<span class='defaulttext'>".LAN_FORUM_3040."</span>";
}
return '';
}