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:
parent
2e22ae198c
commit
dd5cf241cb
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue