Код: Выделить всё
public function get_post_data($event)
{
$forum_id = $event['forum_id'];
$topic_id = $event['topic_id'];
$next = $_GET['next'];
$previous = $_GET['previous'];
if (!$next)
{
$this->template->assign_vars(array(
'U_VIEW_NEWER_TOPIC' => redirect(append_sid("{$this->phpbb_root_path}viewtopic.$this->php_ext", "f=$forum_id&t=$topic_id"))
));
}
return;
if (!$previous)
{
$this->template->assign_vars(array(
'U_VIEW_OLDER_TOPIC' => redirect(append_sid("{$this->phpbb_root_path}viewtopic.$this->php_ext", "f=$forum_id&t=$topic_id"))
));
}
return;
}
Illegal use of $_GET. You must use the request class or request_var() to access input data.