Skip to content

Commit

Permalink
Fix relative path to maxmind database
Browse files Browse the repository at this point in the history
remp/remp#1402
  • Loading branch information
Martin Brieska (Fatchilli) authored and rootpd committed Dec 18, 2024
1 parent f1afbd1 commit 059e715
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

- Fixed ARIA-compatibility of all campaign banners. remp/remp#1368
- Fixed an unclickable Overlay Rectangle banner when no main text and button text is present. remp/remp#1393
- Changed path to maxmind database in .env.example. remp/remp#1402

### [Mailer]

Expand Down
2 changes: 1 addition & 1 deletion Campaign/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ SENTRY_SHOWTIME_SAMPLERATE=1

# Path to .mmdb file containing binary maxmind database. You don't need to change this unless you have paid database
# and you want to use it instead of free version provided withing the repository.
MAXMIND_DATABASE=resources/assets/maxmind/GeoLite2-Country.mmdb
MAXMIND_DATABASE=extensions/campaign-module/resources/assets/maxmind/GeoLite2-Country.mmdb

#####################
# Newsletter Subscription Banner
Expand Down
2 changes: 1 addition & 1 deletion Campaign/extensions/campaign-module/public/showtime.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ private function renderInternal(
if (file_exists(env('MAXMIND_DATABASE'))) {
$maxmindDbPath = env('MAXMIND_DATABASE');
} else {
$maxmindDbPath = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . env('MAXMIND_DATABASE');
$maxmindDbPath = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . env('MAXMIND_DATABASE');
}
$geoReader = new LazyGeoReader($maxmindDbPath);

Expand Down

0 comments on commit 059e715

Please sign in to comment.