diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-06-07 23:55:54 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-06-07 23:55:54 +0100 |
commit | 614abaa627d3f9dfe14efcb994cdcfc0146a623d (patch) | |
tree | 5014f3c8d2e36f9b943f4262c11484e96b90b354 /perllib/Problems.pm | |
parent | cecf86128b3825f92faa6cc222a6cc777293adff (diff) |
Removal of old Cobrand.pm and last .
Diffstat (limited to 'perllib/Problems.pm')
-rw-r--r-- | perllib/Problems.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/Problems.pm b/perllib/Problems.pm index c1430b540..c31fdd507 100644 --- a/perllib/Problems.pm +++ b/perllib/Problems.pm @@ -447,8 +447,8 @@ the cobrand if a cobrand is specified. =cut sub contact_counts { - my ($cobrand) = @_; - my $contact_restriction = Cobrand::contact_restriction($cobrand); + my ( $c ) = @_; + my $contact_restriction = $c->cobrand->contact_restriction; my $contacts = dbh()->selectcol_arrayref("select confirmed, count(*) as c from contacts $contact_restriction group by confirmed", { Columns => [1,2] }); return $contacts; } |