refactoring
update package definition fix dependencies remove global variables
This commit is contained in:
@@ -52,7 +52,7 @@ $params = $request->{params}->{checked};
|
||||
#process header
|
||||
my $headerParams = uac::set_template_permissions( $request->{permissions}, $params );
|
||||
$headerParams->{loc} = localization::get( $config, { user => $user, file => 'menu' } );
|
||||
template::process( 'print', template::check('default.html'), $headerParams );
|
||||
template::process($config, 'print', template::check($config, 'default.html'), $headerParams );
|
||||
return unless uac::check( $config, $params, $user_presets ) == 1;
|
||||
|
||||
our $errors = [];
|
||||
@@ -76,7 +76,7 @@ sub show_stats {
|
||||
|
||||
$params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'user_stats' } );
|
||||
uac::set_template_permissions( $permissions, $params );
|
||||
template::process( 'print', $params->{template}, $params );
|
||||
template::process($config, 'print', $params->{template}, $params );
|
||||
}
|
||||
|
||||
sub check_params {
|
||||
@@ -86,7 +86,7 @@ sub check_params {
|
||||
|
||||
#template
|
||||
my $template = '';
|
||||
$template = template::check( $params->{template}, 'user_stats' );
|
||||
$template = template::check($config, $params->{template}, 'user_stats' );
|
||||
$checked->{template} = $template;
|
||||
|
||||
#numeric values
|
||||
|
||||
Reference in New Issue
Block a user