Fix regression

This commit is contained in:
Laurent Destailleur (aka Eldy) 2025-02-13 14:13:45 +01:00
parent f1e6d4b7d6
commit a75a791620

View File

@ -48,8 +48,11 @@ if (!defined('NOREQUIREAJAX')) {
* @var HookManager $hookmanager
* @var Translate $langs
* @var User $user
*
* @var string $module
* @var string $mode
*/
$module = '';
if (!isset($mode) || $mode != 'noajax') { // For ajax call
require_once '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';