From 0449adf7837434df1fdba5de9f656024b9223d43 Mon Sep 17 00:00:00 2001 From: oleonard Date: Thu, 13 Jan 2005 18:35:47 +0000 Subject: [PATCH] Adding KohaAdminEmailAddress to template --- koha-tmpl/errors/400.pl | 2 ++ koha-tmpl/errors/401.pl | 2 ++ koha-tmpl/errors/402.pl | 2 ++ koha-tmpl/errors/403.pl | 2 ++ koha-tmpl/errors/404.pl | 2 ++ koha-tmpl/errors/500.pl | 2 ++ 6 files changed, 12 insertions(+) diff --git a/koha-tmpl/errors/400.pl b/koha-tmpl/errors/400.pl index 2cb78d9a8f..94a721caf2 100755 --- a/koha-tmpl/errors/400.pl +++ b/koha-tmpl/errors/400.pl @@ -9,6 +9,7 @@ use C4::Context; use HTML::Template; my $query = new CGI; +my $admin = C4::Context->preference('KohaAdminEmailAddress'); my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "errors/400.tmpl", query => $query, @@ -17,4 +18,5 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {catalogue => 1}, debug => 1, }); +$template->param( admin => $admin); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/koha-tmpl/errors/401.pl b/koha-tmpl/errors/401.pl index 9e0763d31f..7d0acb990a 100755 --- a/koha-tmpl/errors/401.pl +++ b/koha-tmpl/errors/401.pl @@ -9,6 +9,7 @@ use C4::Context; use HTML::Template; my $query = new CGI; +my $admin = C4::Context->preference('KohaAdminEmailAddress'); my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "errors/401.tmpl", query => $query, @@ -17,4 +18,5 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {catalogue => 1}, debug => 1, }); +$template->param( admin => $admin); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/koha-tmpl/errors/402.pl b/koha-tmpl/errors/402.pl index 229dc1b94a..c4dc56b628 100755 --- a/koha-tmpl/errors/402.pl +++ b/koha-tmpl/errors/402.pl @@ -9,6 +9,7 @@ use C4::Context; use HTML::Template; my $query = new CGI; +my $admin = C4::Context->preference('KohaAdminEmailAddress'); my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "errors/402.tmpl", query => $query, @@ -17,4 +18,5 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {catalogue => 1}, debug => 1, }); +$template->param( admin => $admin); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/koha-tmpl/errors/403.pl b/koha-tmpl/errors/403.pl index 587cb721d9..e73be2e539 100755 --- a/koha-tmpl/errors/403.pl +++ b/koha-tmpl/errors/403.pl @@ -9,6 +9,7 @@ use C4::Context; use HTML::Template; my $query = new CGI; +my $admin = C4::Context->preference('KohaAdminEmailAddress'); my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "errors/403.tmpl", query => $query, @@ -17,4 +18,5 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {catalogue => 1}, debug => 1, }); +$template->param( admin => $admin); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/koha-tmpl/errors/404.pl b/koha-tmpl/errors/404.pl index 1b16bf891a..f750dacf3a 100755 --- a/koha-tmpl/errors/404.pl +++ b/koha-tmpl/errors/404.pl @@ -9,6 +9,7 @@ use C4::Context; use HTML::Template; my $query = new CGI; +my $admin = C4::Context->preference('KohaAdminEmailAddress'); my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "errors/404.tmpl", query => $query, @@ -17,4 +18,5 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {catalogue => 1}, debug => 1, }); +$template->param( admin => $admin); output_html_with_http_headers $query, $cookie, $template->output; diff --git a/koha-tmpl/errors/500.pl b/koha-tmpl/errors/500.pl index bdf0cc3807..1681feb21f 100755 --- a/koha-tmpl/errors/500.pl +++ b/koha-tmpl/errors/500.pl @@ -9,6 +9,7 @@ use C4::Context; use HTML::Template; my $query = new CGI; +my $admin = C4::Context->preference('KohaAdminEmailAddress'); my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "errors/500.tmpl", query => $query, @@ -17,4 +18,5 @@ my ($template, $loggedinuser, $cookie) flagsrequired => {catalogue => 1}, debug => 1, }); +$template->param( admin => $admin); output_html_with_http_headers $query, $cookie, $template->output; -- 2.39.5