aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlouise <louise>2009-11-12 14:38:13 +0000
committerlouise <louise>2009-11-12 14:38:13 +0000
commit1b8c03831d5ac8c8812909d001bb3c82af72b69a (patch)
tree29bb9e4d51c2ab6ce9108658361002830f9281ff
parent2f852edffd6a2fe91c313d44ceec15ecb499e946 (diff)
Use get_cobrand function
-rw-r--r--perllib/Cobrand.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/Cobrand.pm b/perllib/Cobrand.pm
index dd90be2ba..4d4865ae3 100644
--- a/perllib/Cobrand.pm
+++ b/perllib/Cobrand.pm
@@ -7,7 +7,7 @@
# Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved.
# Email: louise@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: Cobrand.pm,v 1.36 2009-11-11 13:58:15 louise Exp $
+# $Id: Cobrand.pm,v 1.37 2009-11-12 14:38:13 louise Exp $
package Cobrand;
use strict;
@@ -72,7 +72,7 @@ sub set_site_restriction {
my $q = shift;
my $site_restriction = '';
my $site_id = 0;
- my $cobrand = $q->{site};
+ my $cobrand = Page::get_cobrand($q);
my $handle = cobrand_handle($cobrand);
return ($site_restriction, $site_id) unless $handle;
return $handle->site_restriction($q);