Zeile 65 | Zeile 65 |
---|
$plugins->run_hooks("usercp2_do_addsubscription");
|
$plugins->run_hooks("usercp2_do_addsubscription");
|
add_subscribed_thread($thread['tid'], $mybb->get_input('notification', 1));
| add_subscribed_thread($thread['tid'], $mybb->get_input('notification', MyBB::INPUT_INT));
|
if($mybb->get_input('referrer')) {
| if($mybb->get_input('referrer')) {
|
Zeile 81 | Zeile 81 |
---|
{ if($mybb->get_input('type') == "forum") {
|
{ if($mybb->get_input('type') == "forum") {
|
$forum = get_forum($mybb->get_input('fid', 1));
| $forum = get_forum($mybb->get_input('fid', MyBB::INPUT_INT));
|
if(!$forum) { error($lang->error_invalidforum);
| if(!$forum) { error($lang->error_invalidforum);
|
Zeile 107 | Zeile 107 |
---|
} else {
|
} else {
|
$thread = get_thread($mybb->get_input('tid', 1));
| $thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT));
|
if(!$thread) { error($lang->error_invalidthread);
| if(!$thread) { error($lang->error_invalidthread);
|
Zeile 174 | Zeile 174 |
---|
{ if($mybb->get_input('type') == "forum") {
|
{ if($mybb->get_input('type') == "forum") {
|
$forum = get_forum($mybb->get_input('fid', 1));
| $forum = get_forum($mybb->get_input('fid', MyBB::INPUT_INT));
|
if(!$forum) { error($lang->error_invalidforum);
| if(!$forum) { error($lang->error_invalidforum);
|
Zeile 195 | Zeile 195 |
---|
} else {
|
} else {
|
$thread = get_thread($mybb->get_input('tid', 1));
| $thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT));
|
if(!$thread) { error($lang->error_invalidthread);
| if(!$thread) { error($lang->error_invalidthread);
|