From 9a0c1d0f24df8e5f315049004dc9ab930a4a29f4 Mon Sep 17 00:00:00 2001 From: Denis Shakhov Date: Thu, 24 Jul 2014 23:51:53 +0700 Subject: [PATCH] =?UTF-8?q?Fixes=20#491=20=D0=95=D1=81=D0=BB=D0=B8=20?= =?UTF-8?q?=D1=81=D1=80=D0=BE=D0=BA=20=D0=B3=D0=BE=D0=BB=D0=BE=D1=81=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B8=D1=81=D1=82=D0=B5=D0=BA?= =?UTF-8?q?,=20=D1=82=D0=BE=20=D0=B2=D1=81=D0=B5=20=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0?= =?UTF-8?q?=D1=8E=D1=82=D1=81=D1=8F=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20=D0=B3=D0=BE=D0=BB=D0=BE=D1=81=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/frontend/skin/developer/topics/topic_base.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/frontend/skin/developer/topics/topic_base.tpl b/application/frontend/skin/developer/topics/topic_base.tpl index 705f991e..913bb391 100644 --- a/application/frontend/skin/developer/topics/topic_base.tpl +++ b/application/frontend/skin/developer/topics/topic_base.tpl @@ -91,13 +91,15 @@ {block 'entry_footer_info_items'} {* Голосование *}
  • + {$isExpired = strtotime($oTopic->getDateAdd()) < $smarty.now - Config::Get('acl.vote.topic.limit_time')} + {include 'components/vote/vote.tpl' oObject = $oTopic sClasses = 'js-vote-topic' sMods = 'small white topic' bUseAbstain = true - bIsLocked = $oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId() - bShowRating = $oTopic->getVote() || ($oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId()) || strtotime($oTopic->getDateAdd()) < $smarty.now - Config::Get('acl.vote.topic.limit_time')} + bIsLocked = ( $oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId() ) || $isExpired + bShowRating = $oTopic->getVote() || ($oUserCurrent && $oTopic->getUserId() == $oUserCurrent->getId()) || $isExpired}
  • {$smarty.block.parent}