Bugzilla – Attachment 76 Details for
Bug 1153
opac-userupdate.pl update to allow moderation, and templatize
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Moving the contents of an error message from the script to the template
0001-Moving-the-text-of-an-error-message-from-the-script.patch (text/plain), 2.18 KB, created by
Chris Cormack
on 2009-07-06 14:08:00 UTC
(
hide
)
Description:
Moving the contents of an error message from the script to the template
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-07-06 14:08:00 UTC
Size:
2.18 KB
patch
obsolete
>From 2edf21618ba3254299bcf9338dc02dcc9592dbf4 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 @@ > <!-- TMPL_INCLUDE NAME="doc-head-close.inc" --> > </head> > <body> >-<!--TMPL_INCLUDE NAME="masthead.inc" --> >-<!--TMPL_INCLUDE NAME="navigation.inc" --> >+<div id="doc3" class="yui-t7"> >+ <div id="bd"> >+<!-- TMPL_INCLUDE name="masthead.inc" --> > >+<div id="yui-g"> >+<div class="container"> >+<div id="kohaerror"> >+<div class="dialog message"> >+<h3>An Error has Occurred</h3> >+<!-- TMPL_IF NAME="noadminemail" --> >+<p>An error occurred when sending your message to the administrator. Please visit the library to update your personal details. </p> >+<p><a href="/cgi-bin/koha/opac-user.pl">Return to your summary.</a></p> >+<!-- TMPL_ELSE --> >+<p><!-- TMPL_VAR NAME="errormessage" --></p> >+<!-- /TMPL_IF --> >+</div> >+</div> >+</div> >+</div> >+</div> > >-<div id="main"> >-<h3>An Error has Occurred</h3><!-- TMPL_VAR NAME="errormessage" --></div> >-</body> >-</html> >\ No newline at end of file >+<!-- TMPL_INCLUDE NAME="opac-bottom.inc" --> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 1153
:
76