From 465182f8a748c53cb9667146071d0fba6a90c3f8 Mon Sep 17 00:00:00 2001 From: lsces Date: Fri, 27 Mar 2026 16:11:41 +0000 Subject: 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. --- modules/mod_unread_messages.tpl | 2 +- templates/broadcast.tpl | 2 +- templates/compose.tpl | 4 ++-- templates/contact.tpl | 2 +- templates/html_head_inc.tpl | 2 +- templates/mailbox.tpl | 8 ++++---- templates/preferences_inc.tpl | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/modules/mod_unread_messages.tpl b/modules/mod_unread_messages.tpl index 5b18442..ae8f980 100755 --- a/modules/mod_unread_messages.tpl +++ b/modules/mod_unread_messages.tpl @@ -1,5 +1,5 @@ {* $Header$ *} -{if $gBitUser->isRegistered() and $gBitSystem->isPackageActive( 'messages') and $gBitUser->hasPermission( 'p_messages_send' )} +{if $gBitUser->isRegistered() && $gBitSystem->isPackageActive( 'messages') && $gBitUser->hasPermission( 'p_messages_send' )} {bitmodule title="$moduleTitle" name="messages_unread_messages"} {tr}You have {$unreadMsgs} unread {if $unreadMsgs eq '1'}message{else}messages{/if}{/tr} diff --git a/templates/broadcast.tpl b/templates/broadcast.tpl index 46d814f..5654afd 100755 --- a/templates/broadcast.tpl +++ b/templates/broadcast.tpl @@ -16,7 +16,7 @@ {forminput} - + diff --git a/templates/contact.tpl b/templates/contact.tpl index 96a5dec..030e53a 100755 --- a/templates/contact.tpl +++ b/templates/contact.tpl @@ -16,7 +16,7 @@ diff --git a/templates/html_head_inc.tpl b/templates/html_head_inc.tpl index 08dd42d..e14ed24 100755 --- a/templates/html_head_inc.tpl +++ b/templates/html_head_inc.tpl @@ -1,4 +1,4 @@ -{* not working currently if $unreadMsgs and $gBitUser->getPreference('messages_alert') == 'y' and !$smarty.cookies.messages_alert_sent} +{* not working currently if $unreadMsgs && $gBitUser->getPreference('messages_alert') == 'y' && !$smarty.cookies.messages_alert_sent}