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:
parent
3c24a671ea
commit
b5385dc1d6
|
@ -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');
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue