mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
#1343 - Fix forum notify checkbox functionality
This commit is contained in:
@@ -1220,7 +1220,7 @@ class forum_post_handler
|
|||||||
case 'nt':
|
case 'nt':
|
||||||
|
|
||||||
$threadInfo['thread_sticky'] = (MODERATOR ? (int)$_POST['threadtype'] : 0);
|
$threadInfo['thread_sticky'] = (MODERATOR ? (int)$_POST['threadtype'] : 0);
|
||||||
$threadInfo['thread_name'] = $_POST['subject'];
|
$threadInfo['thread_name'] = e107::getParser()->toDB($_POST['subject']);
|
||||||
$threadInfo['thread_forum_id'] = $this->id;
|
$threadInfo['thread_forum_id'] = $this->id;
|
||||||
$threadInfo['thread_active'] = 1;
|
$threadInfo['thread_active'] = 1;
|
||||||
$threadInfo['thread_datestamp'] = $time;
|
$threadInfo['thread_datestamp'] = $time;
|
||||||
@@ -1248,8 +1248,6 @@ class forum_post_handler
|
|||||||
// $this->data['thread_sef'] = $postResult['threadsef'];
|
// $this->data['thread_sef'] = $postResult['threadsef'];
|
||||||
$this->data['thread_sef'] = eHelper::title2sef($threadInfo['thread_name'],'dashl');
|
$this->data['thread_sef'] = eHelper::title2sef($threadInfo['thread_name'],'dashl');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($_POST['email_notify'])
|
if($_POST['email_notify'])
|
||||||
{
|
{
|
||||||
$this->forumObj->track('add', USERID, $newThreadId);
|
$this->forumObj->track('add', USERID, $newThreadId);
|
||||||
|
@@ -504,7 +504,7 @@ class plugin_forum_post_shortcodes extends e_shortcode
|
|||||||
$chk = ($pref['notify_on'] ? "checked='checked'" : '');
|
$chk = ($pref['notify_on'] ? "checked='checked'" : '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return "<br /><input type='checkbox' name='notify' value='1' {$chk} /> <span class='defaulttext'>".LAN_FORUM_3040."</span>";
|
return "<br /><input type='checkbox' name='email_notify' value='1' {$chk} /> <span class='defaulttext'>".LAN_FORUM_3040."</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
|
Reference in New Issue
Block a user