1
0
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:
Tijn Kuyper
2019-10-02 14:08:46 +02:00
parent 1813ab65d0
commit eea2a552a3
2 changed files with 2 additions and 4 deletions

View File

@@ -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);

View File

@@ -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} />&nbsp;<span class='defaulttext'>".LAN_FORUM_3040."</span>"; return "<br /><input type='checkbox' name='email_notify' value='1' {$chk} />&nbsp;<span class='defaulttext'>".LAN_FORUM_3040."</span>";
} }
return ''; return '';