smarty.inc.php:

- replaced last usage of $CONF['postfix_admin_path'] with $incpath

config.inc.php:
- drop (now unused) $CONF['postfix_admin_path'] config variable


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1070 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 15 years ago
parent 3330e20b81
commit 7dc3d62f3d

@ -34,9 +34,6 @@ $CONF['setup_password'] = 'changeme';
// YOU MUST ENTER THE COMPLETE URL e.g. http://domain.tld/postfixadmin
$CONF['postfix_admin_url'] = '';
// shouldn't need changing.
$CONF['postfix_admin_path'] = dirname(__FILE__);
// Language config
// Language files are located in './languages', change as required..
$CONF['default_language'] = 'en';

@ -71,7 +71,7 @@ if (authentication_has_role('global-admin')) {
$motd_file = "motd.txt";
}
$smarty->assign('motd_file', '');
if (file_exists ($CONF ['postfix_admin_path'].'/templates/'.$motd_file)) {
if (file_exists ($incpath.'/templates/'.$motd_file)) {
$smarty->assign ('motd_file', $motd_file);
}

Loading…
Cancel
Save