1
0
mirror of https://github.com/klokantech/tileserver-php.git synced 2025-08-06 06:38:27 +02:00

Don't need trailing slash in dataroot

This commit is contained in:
Dalibor Janák
2017-12-05 15:31:40 +01:00
parent bb823a57ff
commit f75b1bbfa6

View File

@@ -66,6 +66,11 @@ class Server {
public function __construct() {
$this->config = $GLOBALS['config'];
if($this->config['dataRoot'] != ''
&& substr($this->config['dataRoot'], -1) != '/' ){
$this->config['dataRoot'] .= '/';
}
//Get config from enviroment
$envServerTitle = getenv('serverTitle');
if($envServerTitle !== FALSE){