forked from HPR/hpr_generator
Add MACRO media_baseurl
Allow the audio files to be served from a different host
This commit is contained in:
@@ -125,6 +125,8 @@ sub main {
|
||||
# from the generated list of pages.
|
||||
@page_args= grep { $_ ne 'DBI' } @page_args;
|
||||
@page_args= grep { $_ ne 'root_template' } @page_args;
|
||||
@page_args= grep { $_ ne 'media_hostname' } @page_args;
|
||||
|
||||
};
|
||||
foreach my $page_arg (@page_args) {
|
||||
my %parsed_arg = parse_page_arg($page_arg);
|
||||
@@ -142,6 +144,10 @@ sub main {
|
||||
$page_config->{'baseurl'} = $config{root_template}{baseurl};
|
||||
}
|
||||
|
||||
if (exists $config{root_template}{media_hostname}) {
|
||||
$page_config->{'media_hostname'} = $config{root_template}{media_hostname};
|
||||
}
|
||||
|
||||
if ($page_config->{'multipage'} && $page_config->{'multipage'} eq 'true') {
|
||||
if (scalar @{$parsed_arg{'ids'}} == 1) {
|
||||
@{$parsed_arg{'ids'}} = get_ids_from_db($tt, \$page_config);
|
||||
|
Reference in New Issue
Block a user