forked from Wavyzz/dolibarr
Fix: Bad init of conf->entity
This commit is contained in:
@@ -39,19 +39,17 @@ if (substr($sapi_type, 0, 3) == 'cgi') {
|
||||
|
||||
// Include Dolibarr environment
|
||||
require_once($path."../../htdocs/master.inc.php");
|
||||
// After this $db is an opened handler to database. We close it at end of file.
|
||||
// After this $db, $mysoc, $langs and $conf->entity are defined. Opened handler to database will be closed at end of file.
|
||||
require_once(DOL_DOCUMENT_ROOT."/cron/functions_cron.lib.php");
|
||||
|
||||
|
||||
// Load main language strings
|
||||
$langs->load("main");
|
||||
|
||||
// Global variables
|
||||
$version='$Revision$';
|
||||
$error=0;
|
||||
|
||||
|
||||
// -------------------- START OF YOUR CODE HERE --------------------
|
||||
//$langs->setDefaultLang('en_US'); // To change default language of $langs
|
||||
$langs->load("main"); // To load language file for default language
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user