diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-08 12:39:40 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-08 12:39:40 +0100 |
commit | 2d0503ccfd4c55ea7252e19603fe4732c2f36f9e (patch) | |
tree | c49fd72256181c2e0f965c22961fa6fe72466931 /perllib/FixMyStreet/App.pm | |
parent | 614abaa627d3f9dfe14efcb994cdcfc0146a623d (diff) |
Start moving stuff out of Problems.pm, do JSON as per its better-way comment.
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r-- | perllib/FixMyStreet/App.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index 09a8609fe..4aa9cc75b 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 ); - Problems::set_site_restriction_with_cobrand_object($cobrand); + $c->model('DB::Problem')->set_restriction( $cobrand->site_restriction() ); Memcached::set_namespace( FixMyStreet->config('BCI_DB_NAME') . ":" ); |