aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r--perllib/FixMyStreet/App.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 09a8609fe..811a40eb0 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -130,7 +130,7 @@ sub _get_cobrand {
? FixMyStreet::Cobrand->get_class_for_moniker($override_moniker)
: FixMyStreet::Cobrand->get_class_for_host($host);
- my $cobrand = $cobrand_class->new( { request => $c->req } );
+ my $cobrand = $cobrand_class->new( { c => $c } );
return $cobrand;
}
@@ -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') . ":" );