[Koha-bugs] [Bug 16455] New: TagsExternalDictionary does not work under Plack
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 5 17:57:43 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16455
Bug ID: 16455
Summary: TagsExternalDictionary does not work under Plack
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: jonathan.druart at bugs.koha-community.org
Reporter: jonathan.druart at bugs.koha-community.org
QA Contact: testopia at bugs.koha-community.org
Depends on: 16444
The pref TagsExternalDictionary is used to tell Lingua::Ispell to use an other
dictionary, different from the default one (/usr/bin/ispell).
To do so we need to set $Lingua::Ispell::path to the expected path.
It's currently done in the INIT block.
If you try to use C4::Tags, you will get the famous "Too late to run INIT block
at C4/Tags.pm line 74." warning. Plack use the INIT block to load functions at
run time, when we are using C4::Tags when hitting a pl script, the compilation
phase is finished and it's "too late to run INIT block" from C4::Tags.
I do not really know if it has an impact on the behavior of Lingua::Ispell
(i.e. is the path redefined?), but I know that this INIT block is not executed
when we want.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16444
[Bug 16444] C4::Tags is not plack safe
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list