aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Map
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-05-25 12:53:23 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-05-25 12:53:23 +0100
commit089c187e9042a4c4118b504ba2ee8999a828d8a5 (patch)
tree04b72705c59881c4b2a8509a66e1030ba4a4f85c /perllib/FixMyStreet/Map
parent1e39c5b6d4c1200d89292b3715513a7260bd9743 (diff)
Add tilma_mid_point cobrand function.
Diffstat (limited to 'perllib/FixMyStreet/Map')
-rw-r--r--perllib/FixMyStreet/Map/Tilma/Original.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Map/Tilma/Original.pm b/perllib/FixMyStreet/Map/Tilma/Original.pm
index d553b06e2..7ba0afab5 100644
--- a/perllib/FixMyStreet/Map/Tilma/Original.pm
+++ b/perllib/FixMyStreet/Map/Tilma/Original.pm
@@ -41,7 +41,7 @@ sub header_js {
sub display_map {
my ($self, $c, %params) = @_;
my $mid_point = TILE_WIDTH; # Map is 2 TILE_WIDTHs in size, square.
- if (my $mp = Cobrand::tilma_mid_point(Page::get_cobrand($q))) {
+ if (my $mp = $c->cobrand->tilma_mid_point) {
$mid_point = $mp;
}