aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Problems.pm
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-02-23 22:10:37 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-02-23 22:10:37 +0000
commit3ef36c3c9b5393c78c0af59b9f4e3f4528472357 (patch)
tree74e1118ae16bdd0e7cbb9f206248883c59de51e0 /perllib/Problems.pm
parentb6ef8d10c3ec7164c65d81b75ecf2662952aeb6d (diff)
More work on the Cobrand and setting for request
test to see welsh about us page
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";