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 <chrisc@catalyst.net.nz>
This commit is contained in:
Liz Rea 2015-06-24 11:20:58 +12:00 committed by Chris Cormack
parent 2e22ae198c
commit dd5cf241cb
4 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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

View File

@ -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,

View File

@ -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,