fixup! templates: move includes into *-header.html files

This commit is contained in:
Milan
2022-11-18 23:47:30 +01:00
parent 9d5b154b69
commit fed2fc5774
3 changed files with 3 additions and 5 deletions

View File

@@ -55,14 +55,11 @@ $params = $request->{params}->{checked};
unless ( params::isJson() ) {
my $headerParams = uac::set_template_permissions( $request->{permissions}, $params );
$headerParams->{loc} = localization::get( $config, { user => $user, file => 'menu' } );
template::process( $config, 'print', template::check( $config, 'default.html' ),
template::process( $config, 'print', template::check( $config, 'show-playout-header.html' ),
$headerParams );
}
return unless uac::check( $config, $params, $user_presets ) == 1;
template::process( $config, 'print', template::check( $config, 'show-playout-header.html' ), $headerParams )
unless (params::isJson);
my $permissions = $request->{permissions};
$params->{action} = '' unless defined $params->{action};
$params->{error} = $error || '';