diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2012-08-14 11:16:54 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-08-16 21:43:46 +0100 |
commit | 1bb1706fa427513626a39df4ed3f4fdef097ce60 (patch) | |
tree | bed9864a360380d9b9b6b572fe2e750487fa25da | |
parent | f6df505e03a3a0a089f2d4a82e1dcfe60aeef505 (diff) |
Allow example_places to be specified in config file.
-rw-r--r-- | conf/general.yml-example | 4 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Default.pm | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/conf/general.yml-example b/conf/general.yml-example index f2e35451e..2f26b76d1 100644 --- a/conf/general.yml-example +++ b/conf/general.yml-example @@ -26,6 +26,10 @@ CONTACT_NAME: 'FixMyStreet' # Whether this is a live site or not. STAGING_SITE: 1 +# What to use as front page/alert example places placeholder +# Defaults to High Street, Main Street +EXAMPLE_PLACES: + # File locations for uploaded photos and cached geocoding results. UPLOAD_DIR: '../upload/' GEO_CACHE: '../cache/' diff --git a/perllib/FixMyStreet/Cobrand/Default.pm b/perllib/FixMyStreet/Cobrand/Default.pm index ee8a2bf5e..e5c74a428 100644 --- a/perllib/FixMyStreet/Cobrand/Default.pm +++ b/perllib/FixMyStreet/Cobrand/Default.pm @@ -765,7 +765,7 @@ sub get_report_stats { return 0; } sub get_council_sender { return 'Email' }; sub example_places { - return [ 'High Street', 'Main Street' ]; + return FixMyStreet->config('EXAMPLE_PLACES') || [ 'High Street', 'Main Street' ]; } sub process_extras {} |