diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-08 14:20:36 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-09 11:54:51 +0100 |
commit | 7a0e456e59041b90b527934777f449518ea54065 (patch) | |
tree | fa319cc3f7ed0c8304fea6e06d39adabe9c74b14 /perllib/FixMyStreet/Script/Questionnaires.pm | |
parent | 38fe802b9bb5cbb749d8f4c39cefc043b8c046cd (diff) |
Add get_cobrand_logged to Comment.
Diffstat (limited to 'perllib/FixMyStreet/Script/Questionnaires.pm')
-rw-r--r-- | perllib/FixMyStreet/Script/Questionnaires.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Script/Questionnaires.pm b/perllib/FixMyStreet/Script/Questionnaires.pm index d89f1bcf8..bcdaa06d6 100644 --- a/perllib/FixMyStreet/Script/Questionnaires.pm +++ b/perllib/FixMyStreet/Script/Questionnaires.pm @@ -43,7 +43,7 @@ sub send_questionnaires_period { while (my $row = $unsent->next) { - my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($row->cobrand)->new(); + my $cobrand = $row->get_cobrand_logged; $cobrand->set_lang_and_domain($row->lang, 1); FixMyStreet::Map::set_map_class($cobrand->map_type); |