entry.pm: use parser functions

This commit is contained in:
Milan
2020-04-09 23:02:19 +02:00
parent 29951c2f63
commit a37974bb5e
2 changed files with 3 additions and 24 deletions

View File

@@ -164,11 +164,6 @@ sub check_params {
my $template = template::check( $config, $params->{template}, 'series_names.html' );
my $debug = $params->{debug} || '';
if ( $debug =~ /([a-z\_\,]+)/ ) {
$debug = $1;
}
my $search = $params->{q} || $params->{search} || $params->{term} || '';
if ( $search =~ /([a-z0-9A-Z\_\,]+)/ ) {
$search = $1;
@@ -176,7 +171,6 @@ sub check_params {
return {
template => $template,
debug => $debug,
search => $search,
};
}