Added URLMap support (e.g. virtual hosts and mounting)
This commit is contained in:
parent
e15c32e3f7
commit
2516ff12c1
10 changed files with 54 additions and 22 deletions
|
|
@ -1265,7 +1265,7 @@ If specified, we'll return a URL to the file rather than the storage location.
|
|||
sub getUrl {
|
||||
my $self = shift;
|
||||
my $file = shift;
|
||||
my $url = $self->session->config->get("uploadsURL") . '/' . $self->getPathFrag;
|
||||
my $url = $self->session->url->make_urlmap_work($self->session->config->get("uploadsURL")) . '/' . $self->getPathFrag;
|
||||
my $cdnCfg = $self->session->config->get('cdn');
|
||||
if ( $cdnCfg
|
||||
and $cdnCfg->{'enabled'}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue