]> git.evergreen-ils.org Git - Evergreen.git/commit
Bypass install_filter mem leak via direct insertion
authorBill Erickson <berick@esilibrary.com>
Mon, 1 Aug 2011 13:00:30 +0000 (09:00 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 1 Aug 2011 13:04:40 +0000 (09:04 -0400)
commitefce5923f0817b85848d73a92a5a9495c1bcabf1
treef6353b37e7c4c5cca3c7ce4a10ed8cddaab0b07c
parent933964c5c02332692f8725fb23764ed7e6df6852
Bypass install_filter mem leak via direct insertion

See https://rt.cpan.org/Ticket/Display.html?id=46691

On the one hand we have a memory leak, on the other we have a bug caused
by the fix to the memory leak.  Bypass this altogether and insert the
filter manually into the template environment using Template's FILTER
configuration argument.  This has the added bonus of simplifying the
i18n filter code.

Since the filter is manually inserted, it's not necessary (and possibly
counter-productive) to USE the filter directly in the template.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb.pm
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGWeb/I18NFilter.pm
Open-ILS/web/templates/default/opac/parts/header.tt2