0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

The link target of the "Main" menu item in users/ was configurable in

$CONF['user_footer_link']. This doesn't really make sense - it should
always be a link to users/main.php.

configs/menu.conf:
- added url_user_main = main.php

templates/users_menu.tpl:
- replaced $CONF.user_footer_link with #url_user_main#

config.inc.php:
- removed (now unused) $CONF['user_footer_link']


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1059 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
Christian Boltz 2011-05-01 20:08:29 +00:00
parent 10368edc90
commit 5451b536d3
3 changed files with 2 additions and 4 deletions

View File

@ -280,9 +280,6 @@ $CONF['fetchmail_extra_options'] = 'NO';
$CONF['show_header_text'] = 'NO';
$CONF['header_text'] = ':: Postfix Admin ::';
// link to display under 'Main' menu when logged in as a user.
$CONF['user_footer_link'] = "http://change-this-to-your.domain.tld/main";
// Footer
// Below information will be on all pages.
// If you don't want the footer information to appear set this to 'NO'.

View File

@ -26,6 +26,7 @@ url_viewlog = viewlog.php
url_logout = logout.php
# user-menu
url_user_main = main.php
url_user_edit_alias = edit-alias.php
url_user_vacation = vacation.php
url_user_password = password.php

View File

@ -1,6 +1,6 @@
<div id="menu">
<ul>
<li><a target="_top" href="{$CONF.user_footer_link}">{$PALANG.pMenu_main}</a></li>
<li><a target="_top" href="{#url_user_main#}">{$PALANG.pMenu_main}</a></li>
{if $CONF.vacation===YES}
<li><a target="_top" href="{#url_user_vacation#}">{$PALANG.pUsersMenu_vacation}</a></li>
{/if}