From 5fcbb2ea7d80b6a70fde6391971209c6aaa50564 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 Signed-off-by: Henri-Damien LAURENT --- .../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 8e89c418ac..cd126dd851 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.39.5