Skip to content

Commit

Permalink
Don't need trailing slash in dataroot
Browse files Browse the repository at this point in the history
  • Loading branch information
daliborjanak committed Dec 5, 2017
1 parent bb823a5 commit f75b1bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tileserver.php
Expand Up @@ -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){
Expand Down

0 comments on commit f75b1bb

Please sign in to comment.