[open-ils-commits] [GIT] Evergreen ILS branch master updated. 1d1a431727a77322c5b6213d76b334e7729e7d1d

Evergreen Git git at git.evergreen-ils.org
Wed Aug 27 01:14:50 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, master has been updated
       via  1d1a431727a77322c5b6213d76b334e7729e7d1d (commit)
      from  4f3f43e42c58a279d08a25280de9a2e406e2df53 (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 1d1a431727a77322c5b6213d76b334e7729e7d1d
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 8b72e53..0f9e93e 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