2
0
forked from Wavyzz/dolibarr

Add of $urlwithroot in the setBaseUrls function, to use Dolibarr external domain name in the configuration file

This commit is contained in:
Neil Orley
2017-09-12 17:45:02 +02:00
parent a300a635d8
commit f68d31d7c5

View File

@@ -56,7 +56,7 @@ class DolibarrApi
$this->db = $db;
$production_mode = ( empty($conf->global->API_PRODUCTION_MODE) ? false : true );
$this->r = new Restler($production_mode, $refreshCache);
$this->r->setBaseUrls(DOL_MAIN_URL_ROOT);
$this->r->setBaseUrls(DOL_MAIN_URL_ROOT, $urlwithroot);
$this->r->setAPIVersion(1);
}