mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
fix forget-password (+ themeing), see #427
This commit is contained in:
1 parent
0ca0efa7b8
commit
dd86dcad30
1 file changed
+4
-1
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Postfix Admin
|
||||
*
|
||||
@@ -25,7 +26,6 @@
|
||||
*/
|
||||
|
||||
|
||||
$smarty = PFASmarty::getInstance();
|
||||
|
||||
/* if in .../users, we need to load a different common.php; not this file is symlinked with public/ */
|
||||
if (preg_match('/\/users\//', $_SERVER['REQUEST_URI'])) {
|
||||
@@ -35,8 +35,11 @@ if (preg_match('/\/users\//', $_SERVER['REQUEST_URI'])) {
|
||||
$rel_path = './';
|
||||
$context = 'admin';
|
||||
}
|
||||
|
||||
require_once($rel_path . 'common.php');
|
||||
|
||||
$smarty = PFASmarty::getInstance();
|
||||
$smarty->configureTheme($rel_path);
|
||||
|
||||
|
||||
if ($context === 'admin' && !Config::read('forgotten_admin_password_reset') || $context === 'users' && !Config::read('forgotten_user_password_reset')) {
|
||||
|
||||
Reference in new issue
Block a user