diff options
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/Cobrand.pm | 3 | ||||
-rw-r--r-- | perllib/Cobrands/Emptyhomes/Util.pm | 4 | ||||
-rw-r--r-- | perllib/Cobrands/Fiksgatami/Util.pm | 8 |
3 files changed, 15 insertions, 0 deletions
diff --git a/perllib/Cobrand.pm b/perllib/Cobrand.pm index c218ba9ea..3d604984d 100644 --- a/perllib/Cobrand.pm +++ b/perllib/Cobrand.pm @@ -116,6 +116,9 @@ my %fns = ( 'admin_pages' => { default => '0' }, # Show the problem creation graph in the admin interface 'admin_show_creation_graph' => { default => '1' }, + # The MaPit types this site handles + 'area_types' => { default => '[qw(DIS LBO MTD UTA CTY COI)]' }, + 'area_min_generation' => { default => '10' }, ); foreach (keys %fns) { diff --git a/perllib/Cobrands/Emptyhomes/Util.pm b/perllib/Cobrands/Emptyhomes/Util.pm index acb870695..00502eae9 100644 --- a/perllib/Cobrands/Emptyhomes/Util.pm +++ b/perllib/Cobrands/Emptyhomes/Util.pm @@ -33,6 +33,10 @@ sub admin_base_url { return 'https://secure.mysociety.org/admin/emptyhomes/'; } +sub area_types { + return [qw(DIS LBO MTD UTA LGD COI)]; # No CTY +} + =item set_lang_and_domain LANG UNICODE Set the language and text domain for the site based on the query and host. diff --git a/perllib/Cobrands/Fiksgatami/Util.pm b/perllib/Cobrands/Fiksgatami/Util.pm index 15a649eba..a0374cf1a 100644 --- a/perllib/Cobrands/Fiksgatami/Util.pm +++ b/perllib/Cobrands/Fiksgatami/Util.pm @@ -34,5 +34,13 @@ sub disambiguate_location { return $s; } +sub area_types { + return [ 'NKO', 'NFY' ]; +} + +sub area_min_generation { + return ''; +} + 1; |