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:
@@ -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){
|
||||
|
Reference in New Issue
Block a user