One final config lookup removed, for the gateway method itself.

This commit is contained in:
Colin Kuskie 2011-01-13 10:16:36 -08:00
parent 95d88fbede
commit d9736ea032

View file

@ -177,7 +177,7 @@ sub gateway {
my $pageUrl = shift;
my $pairs = shift;
my $skipPreventProxyCache = shift;
my $url = $self->make_urlmap_work($self->session->config->get("gateway")).'/'.$pageUrl;
my $url = $self->make_urlmap_work($self->session->request->base->path).'/'.$pageUrl;
$url =~ tr{/}{/}s;
if ($self->session->setting->get("preventProxyCache") == 1 and !$skipPreventProxyCache) {
$url = $self->append($url,"noCache=".int(rand(1001)).':'.time());