2
0
forked from Wavyzz/dolibarr

Fix: Bad init of conf->entity

This commit is contained in:
Laurent Destailleur
2009-09-01 15:47:29 +00:00
parent d3255c1965
commit c812c32808
2 changed files with 8 additions and 9 deletions

View File

@@ -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";