Skip to content

Commit

Permalink
fix tests again
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Oct 11, 2024
1 parent ae20c28 commit 700631d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Settings/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public function __construct(
* @throws Exception
*/
public function getForm(): TemplateResponse {
$adminMaptilerApiKey = $this->appConfig->getValueString(Application::APP_ID, 'maptiler_api_key', Application::DEFAULT_MAPTILER_API_KEY) ?: Application::DEFAULT_MAPTILER_API_KEY;
// $adminMaptilerApiKey = $this->appConfig->getValueString(Application::APP_ID, 'maptiler_api_key', Application::DEFAULT_MAPTILER_API_KEY) ?: Application::DEFAULT_MAPTILER_API_KEY;
$useGpsbabel = $this->appConfig->getValueString(Application::APP_ID, 'use_gpsbabel', '0') === '1';
$proxyOsm = $this->appConfig->getValueString(Application::APP_ID, 'proxy_osm', '1') === '1';
$adminTileServers = $this->tileServerMapper->getTileServersOfUser(null);

$adminConfig = [
// do not expose the stored value to the user
'maptiler_api_key' => $adminMaptilerApiKey === '' ? '' : 'dummyApiKey',
'maptiler_api_key' => 'dummyApiKey',
'use_gpsbabel' => $useGpsbabel,
'proxy_osm' => $proxyOsm,
'extra_tile_servers' => $adminTileServers,
Expand Down

0 comments on commit 700631d

Please sign in to comment.