Fix #17907 : import of the undefined function

This commit is contained in:
lmarcouiller 2021-06-15 16:11:25 +02:00
parent 83ec4cbd71
commit 674bd53b32

View File

@ -39,6 +39,7 @@ require_once DOL_DOCUMENT_ROOT.'/recruitment/class/recruitmentjobposition.class.
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/security.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
// Load translation files required by the page
$langs->loadLangs(array("companies", "other", "recruitment"));
@ -75,7 +76,7 @@ if (!$action) {
$urlwithroot = DOL_MAIN_URL_ROOT; // This is to use same domain name than current. For Paypal payment, we can use internal URL like localhost.
// Security check
if (empty($conf->recruitement->enabled)) {
if (empty($conf->recruitment->enabled)) {
accessforbidden('', 0, 0, 1);
}