diff options
-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 {} |