Skip to content

Commit

Permalink
Version 2.0.1
Browse files Browse the repository at this point in the history
New language handling
  • Loading branch information
joachimruhs committed Oct 19, 2024
1 parent e386045 commit 6339198
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Classes/Controller/AjaxController.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,12 @@ public function ajaxEidAction() {
// fetching correct language for locallang labels
$siteConfiguration = $this->request1->getAttribute('site')->getConfiguration();
for ($i = 0; $i < count($siteConfiguration['languages']); $i++) {
if ($siteConfiguration['languages'][$i]['typo3Language'] == $requestArguments['language']) {
$this->language = $siteConfiguration['languages'][$i]['typo3Language'];
if ($siteConfiguration['languages'][$i]['languageId'] == $requestArguments['language']) {
$this->locale = $siteConfiguration['languages'][$i]['locale'];
$this->language = explode('_', $this->locale)[0];
// $this->languageService = GeneralUtility::makeInstance(LanguageServiceFactory::class)->create($this->language);
}

}

$this->_GP['categories'] = '';
Expand Down
1 change: 1 addition & 0 deletions Classes/Domain/Repository/AddressRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public function findLocationsInRadius($latLon, $radius, $categories, $storagePid
// echo $result[$i]['name'] . ' CheckOk = ' . $checkOk . ' $j= ' .$j . '<' . $page * $limit . '&&' . $j . '<=' . intval(($page + 1) * $limit) . '<br />';
if (!($arrayOfCategories)) $checkOk = 1;

$newResult = [];
if ($checkOk && ($j > $page * $limit && $j <= intval(($page + 1) * $limit))) {
$newResult[] = $result[$i];
}
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'title' => 'MyLeaflet',
'description' => 'Leaflet / OpenStreetMap for tt_address data with radial search and categories. No registration and no API-keys necessary.',
'category' => 'plugin',
'version' => '2.0.0',
'version' => '2.0.1',
'state' => 'beta',
'uploadfolder' => false,
'clearcacheonload' => false,
Expand Down

0 comments on commit 6339198

Please sign in to comment.