summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJams H Thompson <jht001@users.sourceforge.net>2007-11-09 03:27:30 +0000
committerJams H Thompson <jht001@users.sourceforge.net>2007-11-09 03:27:30 +0000
commitc4d1d98e034a7c3cbceabccde179c2d1808b9126 (patch)
treedbbecfcc14fad7f6cf497e19d05fb751a333d036
parent148ed6911cd2647bb05576ab33bf0df75a6c590b (diff)
downloadusers-c4d1d98e034a7c3cbceabccde179c2d1808b9126.tar.gz
users-c4d1d98e034a7c3cbceabccde179c2d1808b9126.tar.bz2
users-c4d1d98e034a7c3cbceabccde179c2d1808b9126.zip
make message menu items appear only if messages package is active
-rw-r--r--templates/menu_users.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/menu_users.tpl b/templates/menu_users.tpl
index 769ff95..df96c3d 100644
--- a/templates/menu_users.tpl
+++ b/templates/menu_users.tpl
@@ -20,7 +20,7 @@
{if $gBitSystem->isFeatureActive( 'users_watches' )}
<li><a class="item" href="{$smarty.const.USERS_PKG_URL}watches.php">{biticon iname="weather-clear" iexplain="My Watches" ilocation=$location}</a></li>
{/if}
- {if $gBitUser->hasPermission( 'p_messages_send' )}
+ {if $gBitSystem->isPackageActive( 'messages' ) && $gBitUser->hasPermission( 'p_messages_send' )}
<li><a class="item" {if $unreadMsgs}title="{tr}You have unread messages{/tr}"{/if} href="{$smarty.const.MESSAGES_PKG_URL}message_box.php">{biticon iname="emblem-mail" iexplain="Message Box" ilocation=$location}{if $unreadMsgs}<strong> [{$unreadMsgs}]</strong>{/if}</a></li>
<li><a class="item" href="{$smarty.const.MESSAGES_PKG_URL}compose.php">{biticon iname="mail-send-receive" iexplain="Compose Message" ilocation=$location}</a></li>
{/if}