diff options
author | louise <louise> | 2009-12-15 14:47:40 +0000 |
---|---|---|
committer | louise <louise> | 2009-12-15 14:47:40 +0000 |
commit | 6eb3840757706b7f5d6df22dd2a5ffb8ae8b2df3 (patch) | |
tree | 8f3ffb8ca84043511a4fdfd3c3f485e6f645aa24 /perllib/Cobrand.pm | |
parent | 773b0d350a83a3f4328dd48593735a086181e593 (diff) |
Remove unused functions
Diffstat (limited to 'perllib/Cobrand.pm')
-rw-r--r-- | perllib/Cobrand.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/perllib/Cobrand.pm b/perllib/Cobrand.pm index 18704ed9a..d7a9d0e96 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.50 2009-12-09 13:34:35 louise Exp $ +# $Id: Cobrand.pm,v 1.51 2009-12-15 14:47:40 louise Exp $ package Cobrand; use strict; @@ -595,14 +595,14 @@ sub header_params { } } -=item root_path_js COBRAND +=item root_path_js COBRAND Q Return some js to set the root path from which AJAX queries should be made - -=cut +based on the cobrand and current query Q +=cut sub root_path_js { - my ($cobrand) = @_; + my ($cobrand, $q) = @_; my $handle; if ($cobrand){ $handle = cobrand_handle($cobrand); @@ -610,7 +610,7 @@ sub root_path_js { if ( !$cobrand || !$handle || !$handle->can('root_path_js')){ return 'var root_path = "";'; } else{ - return $handle->root_path_js(); + return $handle->root_path_js($q); } } |