aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-07-06 12:49:40 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-07-06 12:49:40 +0100
commit9a696b0cb64667ed4608021771aed441a09f3ac0 (patch)
treef8e12b152e0ca745c651a268abb907ecad6d8d59 /perllib/FixMyStreet/App.pm
parent842ff2b00f4924f8580710c977ccce7bef33b0c2 (diff)
Factor out site_key as that's only used in one place too.
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r--perllib/FixMyStreet/App.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 6ccc801ce..2f199f4bf 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -177,7 +177,7 @@ sub setup_request {
$c->log->debug( sprintf "Set lang to '%s' and cobrand to '%s'",
$set_lang, $cobrand->moniker );
- $c->model('DB::Problem')->set_restriction( $cobrand->site_restriction() );
+ $c->model('DB::Problem')->set_restriction( $cobrand->site_key() );
Memcached::set_namespace( FixMyStreet->config('FMS_DB_NAME') . ":" );