@@ -617,8 +617,9 @@ |
||
617 | 617 | . "%2C" . $bbox ['maxlon']; |
618 | 618 | $imgUrl .= "&dcl=1"; |
619 | 619 | } |
620 | - if(strpos($imgUrl, "?") === false) |
|
621 | - $imgUrl .= "?"; |
|
620 | + if(strpos($imgUrl, "?") === false) { |
|
621 | + $imgUrl .= "?"; |
|
622 | + } |
|
622 | 623 | |
623 | 624 | //$imgUrl .= "&ms=" . str_replace ( "px", "", $gmap ['width'] ) . "," |
624 | 625 | // . str_replace ( "px", "", $gmap ['height'] ); |
@@ -471,8 +471,9 @@ |
||
471 | 471 | * for better proxy handling... |
472 | 472 | */ |
473 | 473 | public function fetchTile(string $url) { |
474 | - if($this->useTileCache && ($cached = $this->checkTileCache($url))) |
|
475 | - return $cached; |
|
474 | + if($this->useTileCache && ($cached = $this->checkTileCache($url))) { |
|
475 | + return $cached; |
|
476 | + } |
|
476 | 477 | |
477 | 478 | $_UA = 'Mozilla/4.0 (compatible; DokuWikiSpatial HTTP Client; ' . PHP_OS . ')'; |
478 | 479 | if(function_exists("curl_init")) { |