From ef97bdfc53fd67fe1ac9a43150f1704a39700f1a Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Tue, 24 Oct 2017 10:27:38 +0200 Subject: [PATCH] fix required paths --- modules/ant_resetbopassword/ant_resetbopassword.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/ant_resetbopassword/ant_resetbopassword.php b/modules/ant_resetbopassword/ant_resetbopassword.php index 60c4a7a7..4a8d4189 100644 --- a/modules/ant_resetbopassword/ant_resetbopassword.php +++ b/modules/ant_resetbopassword/ant_resetbopassword.php @@ -2,7 +2,12 @@ if (!defined('_PS_VERSION_')) exit; -require_once(PS_ADMIN_DIR . '/helpers/HelperFormBootstrap.php'); +if (defined('PS_ADMIN_DIR')) +{ + require_once(PS_ADMIN_DIR . '/helpers/HelperFormBootstrap.php'); +} else { + require_once(realpath(dirname(__FILE__) .'/../../').'/adm/helpers/HelperFormBootstrap.php'); +} class Ant_Resetbopassword extends Module {