From dd5cf241cb9f867d9c85e6e40685f2ccd9ff5e3d Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Wed, 24 Jun 2015 11:20:58 +1200 Subject: [PATCH] bug 14440 - work around for empty tt filenames This is a work around for the bug of not accepting empty template names. To test: Make sure all of these functions still work. Signed-off-by: Chris Cormack --- acqui/updatesupplier.pl | 2 +- opac/opac-ratings.pl | 2 +- tools/quotes/quotes-upload_ajax.pl | 2 +- tools/quotes/quotes_ajax.pl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/acqui/updatesupplier.pl b/acqui/updatesupplier.pl index 65093d8ba2..c3705c2851 100755 --- a/acqui/updatesupplier.pl +++ b/acqui/updatesupplier.pl @@ -60,7 +60,7 @@ use CGI qw ( -utf8 ); my $input=new CGI; my ($template, $loggedinuser, $cookie) = get_template_and_user( - { template_name => "", + { template_name => "errors/404.tt", query => $input, type => "intranet", authnotrequired => 0, diff --git a/opac/opac-ratings.pl b/opac/opac-ratings.pl index bb1297e200..c8a3d78e31 100755 --- a/opac/opac-ratings.pl +++ b/opac/opac-ratings.pl @@ -42,7 +42,7 @@ my $a = $query->Vars; #### $a my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { - template_name => "", + template_name => "errors/404.tt", query => $query, type => "opac", authnotrequired => 0, # auth required to add tags diff --git a/tools/quotes/quotes-upload_ajax.pl b/tools/quotes/quotes-upload_ajax.pl index 93bbfbeb59..fa87ce89ff 100755 --- a/tools/quotes/quotes-upload_ajax.pl +++ b/tools/quotes/quotes-upload_ajax.pl @@ -34,7 +34,7 @@ my $dbh = C4::Context->dbh; my ( $template, $borrowernumber, $cookie ) = get_template_and_user( { - template_name => "", + template_name => "errors/404.tt", query => $cgi, type => "intranet", authnotrequired => 0, diff --git a/tools/quotes/quotes_ajax.pl b/tools/quotes/quotes_ajax.pl index d08178f913..5ee710a710 100755 --- a/tools/quotes/quotes_ajax.pl +++ b/tools/quotes/quotes_ajax.pl @@ -33,7 +33,7 @@ my $sort_columns = ["id", "source", "text", "timestamp"]; my ( $template, $borrowernumber, $cookie ) = get_template_and_user( { - template_name => "", + template_name => "errors/404.tt", query => $cgi, type => "intranet", authnotrequired => 0, -- 2.39.5