From f75b1bbfa6a177b4c9290f488bfd82a206969b11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Jan=C3=A1k?= Date: Tue, 5 Dec 2017 15:31:40 +0100 Subject: [PATCH] Don't need trailing slash in dataroot --- tileserver.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tileserver.php b/tileserver.php index 7b21dcb..98093d0 100644 --- a/tileserver.php +++ b/tileserver.php @@ -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){