.../joomla/components/com_matukio/models/eventlist.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/joomla/components/com_matukio/models/eventlist.php b/joomla/components/com_matukio/models/eventlist.php index 7559145..cef7822 100644 --- a/joomla/components/com_matukio/models/eventlist.php +++ b/joomla/components/com_matukio/models/eventlist.php @@ -312,7 +312,7 @@ class MatukioModelEventlist extends JModelList // Query location database $locQuery = $db->getQuery(true); - $locQuery->select('id, + $locQuery->select('id, ( 6371 * acos( cos( radians(' . $lat . ') ) * cos( radians( `lat` ) ) * cos( radians( `lng` ) - radians(' . $lng . ') ) + sin( radians(' . $lat . ') ) * sin( radians( `lat` ) ) ) ) @@ -366,7 +366,7 @@ class MatukioModelEventlist extends JModelList // Query location database $locQuery = $db->getQuery(true); - $locQuery->select('id, + $locQuery->select('id, ( 6371 * acos( cos( radians(' . $lat . ') ) * cos( radians( `gmlat` ) ) * cos( radians( `gmlng` ) - radians(' . $lng . ') ) + sin( radians(' . $lat . ') ) * sin( radians( `gmlat` ) ) ) ) @@ -538,7 +538,7 @@ class MatukioModelEventlist extends JModelList $limit = $input->getInt('limit', MatukioHelperSettings::_('event_showanzahl', 10)); // Geolocation since 6.0.10 - $geolocationJson = $input->getString('geolocation_json', ''); + $geolocationJson = $input->getString('filter_geolocation_json', ''); // Custom filter since 6.0.13 $customFieldFilter = $input->getString('cfilter', null);