From d249400e859dcd49e78324ca945cd037a0a11561 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Wed, 12 Mar 2008 14:13:11 +0000 Subject: [PATCH] should fix the commslock bug without new issues (crossing fingers) --- fp-includes/core/core.fpdb.class.php | 6 ++++-- fp-interface/sharedtpls/comments.tpl | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fp-includes/core/core.fpdb.class.php b/fp-includes/core/core.fpdb.class.php index 16a4878..09d4fd9 100644 --- a/fp-includes/core/core.fpdb.class.php +++ b/fp-includes/core/core.fpdb.class.php @@ -692,7 +692,8 @@ 'ip-address'=>'' ) ); - + + if (isset($params['content']) && is_array($params['content']) && $params['content']) { //foreach ($params['entry'] as $k => $val) @@ -723,7 +724,8 @@ $smarty->assign_by_ref($k, $entry[$k]); $smarty->assign_by_ref('id', $id); - + + $smarty->assign('entry_commslock', @in_array('commslock',$entry['categories'])); do_action('entry_block'); diff --git a/fp-interface/sharedtpls/comments.tpl b/fp-interface/sharedtpls/comments.tpl index 3083dd4..4ba3009 100755 --- a/fp-interface/sharedtpls/comments.tpl +++ b/fp-interface/sharedtpls/comments.tpl @@ -1,4 +1,4 @@ -{if !in_array('commslock',$categories)} +{if !$entry_commslock} {*

{$lang.comments.commslock}

else*}

{$lang.comments.head}

{$lang.comments.descr}