From 04d2b672f61b1183867d76621d5b68abc4c6fdc5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 6 Jul 2009 09:06:51 -0500 Subject: [PATCH] Moving the text of an error message from the script to the template where it can be translated. Partial fix for bug 1153. Signed-off-by: Galen Charlton --- .../opac-tmpl/prog/en/modules/kohaerror.tmpl | 26 ++++++++++++++----- opac/opac-userupdate.pl | 3 +-- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/kohaerror.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/kohaerror.tmpl index 6a90fae56a..0fa7474be2 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/kohaerror.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/kohaerror.tmpl @@ -2,11 +2,25 @@ - - +
+
+ +
+
+
+
+

An Error has Occurred

+ +

An error occurred when sending your message to the administrator. Please visit the library to update your personal details.

+

Return to your summary.

+ +

+ +
+
+
+
+
-
-

An Error has Occurred

- - \ No newline at end of file + diff --git a/opac/opac-userupdate.pl b/opac/opac-userupdate.pl index bbe02d7ae4..43986b0475 100755 --- a/opac/opac-userupdate.pl +++ b/opac/opac-userupdate.pl @@ -73,8 +73,7 @@ if ( $updateemailaddress eq '' ) { ); $template->param( - errormessage => 'KohaAdminEmailAddress system preference - is not set. Please visit the library to update your user record' + noadminemail => 1, ); output_html_with_http_headers $query, $cookie, $template->output; -- 2.20.1