1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

Fixes #577 Ошибка с шаблоном опросов

This commit is contained in:
Denis Shakhov 2014-12-01 23:22:34 +07:00
parent 3c24a671ea
commit b5385dc1d6

View file

@ -32,6 +32,8 @@ class BlockPollFormItems extends Block
*/
public function Exec()
{
$this->SetTemplate('components/poll/poll.manage.list.tpl');
$sTargetType = $this->GetParam('target_type');
$sTargetId = $this->GetParam('target_id');
$sTargetTmp = empty($_COOKIE['poll_target_tmp_' . $sTargetType]) ? $this->GetParam('target_tmp') : $_COOKIE['poll_target_tmp_' . $sTargetType];
@ -53,7 +55,5 @@ class BlockPollFormItems extends Block
$aPollItems = $this->Poll_GetPollItemsByFilter($aFilter);
$this->Viewer_Assign('aPollItems', $aPollItems);
$this->SetTemplate('components/poll/poll.manage.list.tpl');
}
}