Skip to content

Commit

Permalink
Add of $urlwithroot in the setBaseUrls function, to use Dolibarr exte…
Browse files Browse the repository at this point in the history
…rnal domain name in the configuration file
  • Loading branch information
Neil Orley committed Sep 12, 2017
1 parent a300a63 commit f68d31d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/api/class/api.class.php
Expand Up @@ -56,7 +56,7 @@ function __construct($db, $cachedir='', $refreshCache=false)
$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);
}

Expand Down

0 comments on commit f68d31d

Please sign in to comment.