fix Notice error on install
This commit is contained in:
parent
eed2974e9e
commit
8c95bc399a
@ -5,6 +5,7 @@
|
|||||||
* Copyright (C) 2007-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2007-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2012 Marcos García <marcosgdf@gmail.com>
|
* Copyright (C) 2012 Marcos García <marcosgdf@gmail.com>
|
||||||
* Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
* Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||||
|
* Copyright (C) 2021 Charlene Benke <charlene@patas-monkey.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -42,17 +43,14 @@ if (!defined('ADODB_PATH'))
|
|||||||
}
|
}
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/translate.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/translate.class.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/class/conf.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||||
require_once ADODB_PATH.'adodb-time.inc.php';
|
require_once ADODB_PATH.'adodb-time.inc.php';
|
||||||
|
|
||||||
// Avoid warnings with strict mode E_STRICT
|
// stdClass for $db
|
||||||
$conf = new stdClass(); // instantiate $conf explicitely
|
$conf = new Conf(new stdClass());
|
||||||
$conf->global = new stdClass();
|
|
||||||
$conf->file = new stdClass();
|
|
||||||
$conf->db = new stdClass();
|
|
||||||
$conf->syslog = new stdClass();
|
|
||||||
|
|
||||||
// Force $_REQUEST["logtohtml"]
|
// Force $_REQUEST["logtohtml"]
|
||||||
$_REQUEST["logtohtml"] = 1;
|
$_REQUEST["logtohtml"] = 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user