summaryrefslogtreecommitdiff
path: root/templates/service_content_body_inc.tpl
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-03-27 16:11:01 +0000
committerlsces <lester@lsces.co.uk>2026-03-27 16:11:01 +0000
commitcb8a70fed8e6667a3b6f61e090786b6cd2f67216 (patch)
tree0b07a945fc28350b70981be89ae7df924ca04482 /templates/service_content_body_inc.tpl
parentc8bec0f289beac93a88fe41408d1958d9232244d (diff)
downloadliberty-cb8a70fed8e6667a3b6f61e090786b6cd2f67216.tar.gz
liberty-cb8a70fed8e6667a3b6f61e090786b6cd2f67216.tar.bz2
liberty-cb8a70fed8e6667a3b6f61e090786b6cd2f67216.zip
Figured what has been causing a problem with using && and || in smarty templates and related to mistake in processing {2} elements that should use curly brackets and not revert to square ones.
Diffstat (limited to 'templates/service_content_body_inc.tpl')
-rwxr-xr-xtemplates/service_content_body_inc.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/service_content_body_inc.tpl b/templates/service_content_body_inc.tpl
index 23cb496..776b7d4 100755
--- a/templates/service_content_body_inc.tpl
+++ b/templates/service_content_body_inc.tpl
@@ -1,4 +1,4 @@
-{if $gBitSystem->isFeatureActive( 'liberty_display_status' ) and ($gBitUser->hasPermission('p_liberty_edit_content_status') or $gBitUser->hasPermission('p_liberty_edit_all_status')) and !is_null($serviceHash.content_status_id) and $serviceHash.content_status_id != 50}
+{if $gBitSystem->isFeatureActive( 'liberty_display_status' ) && ($gBitUser->hasPermission('p_liberty_edit_content_status') || $gBitUser->hasPermission('p_liberty_edit_all_status')) && !is_null($serviceHash.content_status_id) && $serviceHash.content_status_id != 50}
{assign var=contentStatusId value=$serviceHash.content_status_id}
<p class="liberty_status">{booticon iname="fa-triangle-exclamation" iexplain="Warning"} {tr}The status of this content is{/tr} <strong>{$gContent->getContentStatusName($contentStatusId)}</strong>.</p>
{/if}{$gContent->mInfo.content_status_name}