mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/15972] Let the event be triggered
Removes old coding which is there just to save a few iterations. PHPBB3-15972
This commit is contained in:
@@ -680,8 +680,6 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if ($mode == 'topics')
|
else if ($mode == 'topics')
|
||||||
{
|
{
|
||||||
@@ -808,8 +806,6 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
|
|||||||
|
|
||||||
unset($tracking);
|
unset($tracking);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if ($mode == 'topic')
|
else if ($mode == 'topic')
|
||||||
{
|
{
|
||||||
@@ -923,8 +919,6 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
|
|||||||
$user->set_cookie('track', tracking_serialize($tracking), $post_time + 31536000);
|
$user->set_cookie('track', tracking_serialize($tracking), $post_time + 31536000);
|
||||||
$request->overwrite($config['cookie_name'] . '_track', tracking_serialize($tracking), \phpbb\request\request_interface::COOKIE);
|
$request->overwrite($config['cookie_name'] . '_track', tracking_serialize($tracking), \phpbb\request\request_interface::COOKIE);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else if ($mode == 'post')
|
else if ($mode == 'post')
|
||||||
{
|
{
|
||||||
@@ -949,8 +943,6 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $
|
|||||||
|
|
||||||
$db->sql_return_on_error(false);
|
$db->sql_return_on_error(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user