Skip to content

Commit 0c48e9c

Browse files
Fixed hardcoding of env variable
1 parent c15ba3d commit 0c48e9c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
### Added
66
- Added missing Maki icons.
77

8+
### Fixed
9+
- Fixed hardcoding of env variable. ([#16](https://github.com/doublesecretagency/craft-mapbox/issues/16))
10+
811
## 2.0.1 - 2025-02-14
912

1013
### Fixed

src/helpers/Mapbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static function loadAssets(string $service, array $params = []): void
8989
}
9090

9191
// Get access token
92-
$accessToken = getenv('MAPBOX_ACCESSTOKEN');
92+
$accessToken = static::getAccessToken();
9393

9494
// Load access token
9595
$view->registerJs("window.mapboxAccessToken='{$accessToken}'", View::POS_HEAD);

0 commit comments

Comments
 (0)