Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "[stable31] Revert "fix: Disable ReverseGeoCoderService when t…
…he server has no internet""
  • Loading branch information
artonge authored Nov 20, 2025
commit 5a226e594ebebd7072a1a1d5f08c1b6e3bdc2a6e
4 changes: 4 additions & 0 deletions lib/Service/ReverseGeoCoderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ private function getPlaceNameForPlaceId(int $placeId): string {
}

public function arePlacesEnabled(): bool {
if (!$this->config->getSystemValueBool('has_internet_connection', true)) {
/* This feature cannot work without internet access */
return false;
}
return ($this->config->getAppValue(Application::APP_ID, self::CONFIG_DISABLE_PLACES, '0') !== '1');
}

Expand Down
Loading