aboutsummaryrefslogtreecommitdiffstats
path: root/web/questionnaire.cgi
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@balti.ukcod.org.uk>2010-11-22 15:49:43 +0000
committerMatthew Somerville <matthew@balti.ukcod.org.uk>2010-11-22 15:54:23 +0000
commitfadd20a3350e9032ef3dfc8b4e2faf340d5f0af2 (patch)
tree70968af5583f85dbfcac8f314ce05e93403d3b37 /web/questionnaire.cgi
parent3f62b70cd98827899f5820290ea1b52643122b5e (diff)
Move map functions to their own package.
Diffstat (limited to 'web/questionnaire.cgi')
-rwxr-xr-xweb/questionnaire.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/questionnaire.cgi b/web/questionnaire.cgi
index 1da410b80..9184ad103 100755
--- a/web/questionnaire.cgi
+++ b/web/questionnaire.cgi
@@ -213,17 +213,17 @@ sub display_questionnaire {
return $error;
}
my $reported_date_time = Page::prettify_epoch($q, $problem->{time});
- my ($x, $y, $x_tile, $y_tile, $px, $py) = Page::os_to_px_with_adjust($q, $problem->{easting}, $problem->{northing}, undef, undef);
+ my ($x, $y, $x_tile, $y_tile, $px, $py) = FixMyStreet::Map::os_to_px_with_adjust($q, $problem->{easting}, $problem->{northing}, undef, undef);
- my $pins = Page::display_pin($q, $px, $py, $problem->{state} eq 'fixed'?'green':'red');
+ my $pins = FixMyStreet::Map::display_pin($q, $px, $py, $problem->{state} eq 'fixed'?'green':'red');
my $problem_text = Page::display_problem_text($q, $problem);
my $updates = Page::display_problem_updates($problem->{id}, $q);
my %vars = (
input_h => \%input_h,
- map_start => Page::display_map($q, x => $x_tile, y => $y_tile, pins => $pins,
+ map_start => FixMyStreet::Map::display_map($q, x => $x_tile, y => $y_tile, pins => $pins,
px => $px, py => $py, pre => $problem_text, post => $updates ),
- map_end => Page::display_map_end(0),
+ map_end => FixMyStreet::Map::display_map_end(0),
heading => _('Questionnaire'),
yes => _('Yes'),
no => _('No'),