@@ -410,8 +410,9 @@ |
||
| 410 | 410 | */ |
| 411 | 411 | public function fetchTile(string $url) |
| 412 | 412 | { |
| 413 | - if ($this->useTileCache && ($cached = $this->checkTileCache($url))) |
|
| 414 | - return $cached; |
|
| 413 | + if ($this->useTileCache && ($cached = $this->checkTileCache($url))) { |
|
| 414 | + return $cached; |
|
| 415 | + } |
|
| 415 | 416 | |
| 416 | 417 | $_UA = 'Mozilla/4.0 (compatible; DokuWikiSpatial HTTP Client; ' . PHP_OS . ')'; |
| 417 | 418 | if (function_exists("curl_init")) { |
@@ -607,8 +607,9 @@ |
||
| 607 | 607 | . "%2C" . $bbox ['maxlon']; |
| 608 | 608 | $imgUrl .= "&dcl=1"; |
| 609 | 609 | } |
| 610 | - if (strpos($imgUrl, "?") === false) |
|
| 611 | - $imgUrl .= "?"; |
|
| 610 | + if (strpos($imgUrl, "?") === false) { |
|
| 611 | + $imgUrl .= "?"; |
|
| 612 | + } |
|
| 612 | 613 | |
| 613 | 614 | //$imgUrl .= "&ms=" . str_replace ( "px", "", $gmap ['width'] ) . "," |
| 614 | 615 | // . str_replace ( "px", "", $gmap ['height'] ); |