From 7f8a3d4bde68cb660833fa71a4d890c7b8eb23df Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 21 Jan 2021 13:57:31 +0000 Subject: [PATCH] also fix password-change include path - see https://github.com/postfixadmin/postfixadmin/issues/430 --- public/users/password-change.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/users/password-change.php b/public/users/password-change.php index 4c5479cc..14307d07 100644 --- a/public/users/password-change.php +++ b/public/users/password-change.php @@ -25,7 +25,6 @@ * fUsername */ -$smarty = PFASmarty::getInstance(); if (preg_match('/\/users\//', $_SERVER['REQUEST_URI'])) { $rel_path = '../'; @@ -36,6 +35,8 @@ if (preg_match('/\/users\//', $_SERVER['REQUEST_URI'])) { } require_once($rel_path . 'common.php'); +$smarty = PFASmarty::getInstance(); + $CONF = Config::getInstance()->getAll(); $smarty->configureTheme($rel_path);