Author: earle
Date: 2005-10-12 02:49:28 +0100 (Wed, 12 Oct 2005)
New Revision: 689
Modified:
trunk/lib/OpenGuides/SuperSearch.pm
Log:
always pass latitude and longitude to the template if criteria for distance search are
defined
Modified: trunk/lib/OpenGuides/SuperSearch.pm
===================================================================
--- trunk/lib/OpenGuides/SuperSearch.pm 2005-10-12 01:36:06 UTC (rev 688)
+++ trunk/lib/OpenGuides/SuperSearch.pm 2005-10-12 01:49:28 UTC (rev 689)
@@ -155,6 +155,8 @@
$doing_search = 1;
# Make sure to pass the criteria to the template.
$tt_vars{dist} = $self->{distance_in_metres};
+ $tt_vars{latitude} = $self->{latitude};
+ $tt_vars{longitude} = $self->{longitude};
if ( $self->config->geo_handler eq 1 ) {
$tt_vars{coord_field_1_value} = $self->{os_x};
$tt_vars{coord_field_2_value} = $self->{os_y};
Show replies by date