[open-ils-commits] [GIT] Evergreen ILS branch rel_2_6 updated. 2c5a3ed9a677b01216213585fa3a387c00898eff

Evergreen Git git at git.evergreen-ils.org
Wed Aug 27 01:14:56 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_6 has been updated
       via  2c5a3ed9a677b01216213585fa3a387c00898eff (commit)
      from  012fa80fd85a81a9eb731660b222b7bb5d77974c (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 2c5a3ed9a677b01216213585fa3a387c00898eff
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