mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-08 07:36:28 +02:00
Don't need trailing slash in dataroot
This commit is contained in:
@@ -66,6 +66,11 @@ class Server {
|
|||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->config = $GLOBALS['config'];
|
$this->config = $GLOBALS['config'];
|
||||||
|
|
||||||
|
if($this->config['dataRoot'] != ''
|
||||||
|
&& substr($this->config['dataRoot'], -1) != '/' ){
|
||||||
|
$this->config['dataRoot'] .= '/';
|
||||||
|
}
|
||||||
|
|
||||||
//Get config from enviroment
|
//Get config from enviroment
|
||||||
$envServerTitle = getenv('serverTitle');
|
$envServerTitle = getenv('serverTitle');
|
||||||
if($envServerTitle !== FALSE){
|
if($envServerTitle !== FALSE){
|
||||||
|
Reference in New Issue
Block a user