diff options
| author | Jams H Thompson <jht001@users.sourceforge.net> | 2007-11-09 03:27:30 +0000 |
|---|---|---|
| committer | Jams H Thompson <jht001@users.sourceforge.net> | 2007-11-09 03:27:30 +0000 |
| commit | c4d1d98e034a7c3cbceabccde179c2d1808b9126 (patch) | |
| tree | dbbecfcc14fad7f6cf497e19d05fb751a333d036 | |
| parent | 148ed6911cd2647bb05576ab33bf0df75a6c590b (diff) | |
| download | users-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.tpl | 2 |
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} |
