From 2edf21618ba3254299bcf9338dc02dcc9592dbf4 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 6 Jul 2009 09:05:26 -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. Content-Type: text/plain; charset="utf-8" --- koha-tmpl/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 6a90fae..0fa7474 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 bbe02d7..43986b0 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; -- 1.5.6.5