[open-ils-commits] [GIT] Evergreen ILS branch rel_2_5 updated. 3f85d1c7f6781c0f5cded16206d27d3868781846
Evergreen Git
git at git.evergreen-ils.org
Wed Aug 27 01:14:54 EDT 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_2_5 has been updated
via 3f85d1c7f6781c0f5cded16206d27d3868781846 (commit)
from 82200311fdf3a55f16da6f7e7851b60250d36540 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3f85d1c7f6781c0f5cded16206d27d3868781846
Author: Bill Erickson <berick at esilibrary.com>
Date: Thu May 15 11:22:16 2014 -0400
LP#1306675 TPAC maketext default handler
Fall back to an unitialized maketext handler, which defaults to the
template language, when OpenILS::WWW::EGWeb::I18N->get_handle fails to
return a response.
Note that why get_handle() returns undef is not yet known.
Signed-off-by: Bill Erickson <berick at esilibrary.com>
Signed-off-by: Ben Shum <bshum at biblio.org>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
index 57cb02b..a885153 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
@@ -90,7 +90,8 @@ sub set_text_handler {
$r->log->debug("egweb: messages locale = $locale");
return sub {
- my $lh = OpenILS::WWW::EGWeb::I18N->get_handle($locale);
+ my $lh = OpenILS::WWW::EGWeb::I18N->get_handle($locale)
+ || OpenILS::WWW::EGWeb::I18N->new;
return $lh->maketext(@_);
};
}
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list