Vergleich usercp2.php - 1.8.1 - 1.8.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 65Zeile 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 81Zeile 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 107Zeile 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 174Zeile 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 195Zeile 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);