mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Forum plugin - Fixed notification option not showing up
This commit is contained in:
@@ -480,14 +480,13 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_forum_post_email_notify()
|
function sc_forum_post_email_notify()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
global $threadInfo, $action, $eaction;
|
global $threadInfo, $action, $eaction;
|
||||||
|
|
||||||
$pref = e107::getPlugPref('forum');
|
$pref = e107::getPlugPref('forum');
|
||||||
|
|
||||||
if($eaction == true) { return ; }
|
if($eaction == true) { return ; }
|
||||||
if (vartrue($pref['notify']) && $action == 'nt' && USER)
|
|
||||||
|
if (vartrue($pref['notify']) && $this->var['action'] == 'nt' && USER)
|
||||||
{
|
{
|
||||||
if(isset($_POST['fpreview']))
|
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} /> <span class='defaulttext'>".LAN_FORUM_3040."</span>";
|
return "<br /><input type='checkbox' name='notify' value='1' {$chk} /> <span class='defaulttext'>".LAN_FORUM_3040."</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user