diff --git a/config.inc.php b/config.inc.php index aa157499..2e4af6e6 100644 --- a/config.inc.php +++ b/config.inc.php @@ -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'; diff --git a/smarty.inc.php b/smarty.inc.php index 5a1d818f..c077514a 100644 --- a/smarty.inc.php +++ b/smarty.inc.php @@ -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); }