diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-07-06 12:10:46 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-07-06 12:10:46 +0100 |
commit | 842ff2b00f4924f8580710c977ccce7bef33b0c2 (patch) | |
tree | e2ab4fda5a811b214fb4f501208f98f07a2c3c41 /perllib/FixMyStreet/DB/ResultSet/Problem.pm | |
parent | deb369669b540f607e435390f4606b927569dded (diff) |
Factor out the SQL restriction from site_restriction, as it's only used in one place.
Diffstat (limited to 'perllib/FixMyStreet/DB/ResultSet/Problem.pm')
-rw-r--r-- | perllib/FixMyStreet/DB/ResultSet/Problem.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/DB/ResultSet/Problem.pm b/perllib/FixMyStreet/DB/ResultSet/Problem.pm index a7738becf..c4fd07615 100644 --- a/perllib/FixMyStreet/DB/ResultSet/Problem.pm +++ b/perllib/FixMyStreet/DB/ResultSet/Problem.pm @@ -14,13 +14,11 @@ use mySociety::MaPit; use FixMyStreet::App; use FixMyStreet::SendReport; -my $site_restriction; my $site_key; sub set_restriction { - my ( $rs, $sql, $key, $restriction ) = @_; + my ( $rs, $key, $restriction ) = @_; $site_key = $key; - $site_restriction = $restriction; } # Front page statistics |