From e67cf48c84ff31106a80354301bb425781ce777f Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Wed, 2 Oct 2019 11:07:00 +0200 Subject: [PATCH] Forum plugin - Fixed notification option not showing up --- e107_plugins/forum/shortcodes/batch/post_shortcodes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_plugins/forum/shortcodes/batch/post_shortcodes.php b/e107_plugins/forum/shortcodes/batch/post_shortcodes.php index b55bd07da..eac2ea316 100644 --- a/e107_plugins/forum/shortcodes/batch/post_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/post_shortcodes.php @@ -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 "
 ".LAN_FORUM_3040.""; } + return ''; }