aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Problems.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/Problems.pm')
-rw-r--r--perllib/Problems.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/perllib/Problems.pm b/perllib/Problems.pm
index 127d88a30..74ac34f75 100644
--- a/perllib/Problems.pm
+++ b/perllib/Problems.pm
@@ -35,6 +35,16 @@ sub set_site_restriction {
}
}
+# Set the site restrictions using the new cobrand style - no need to special
+# case 'fixmystreet' as default cobrand takes care of that.
+sub set_site_restriction_with_cobrand_object {
+ my $cobrand = shift;
+
+ my $cobrand_data = $cobrand->extra_data;
+ ( $site_restriction, $site_key ) =
+ $cobrand->site_restriction($cobrand_data);
+}
+
sub current_timestamp {
my $current_timestamp = dbh()->selectrow_array('select ms_current_timestamp()');
return "'$current_timestamp'::timestamp";