action() == 'thread') { $url = $tpl->url('thread', 'id', $tpl->get('thread')->id, 'action', $tpl->param('action', 'add'), 'tid', $tpl->param('tid'), 'kid', $tpl->param('kid')); $id = 'bez:thread' . $tpl->get('thread')->id; } elseif ($tpl->action() == 'task_form') { $url = $tpl->url('task_form', 'action', $tpl->param('action', 'add'), 'tid', $tpl->param('tid')); $id = 'bez:tasks'; } else { $url = $tpl->url('task', 'action', $tpl->param('action', 'add'), 'tid', $tpl->param('tid')); $id = 'bez:tasks'; } ?>