https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42714

--- Comment #14 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 199877
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199877&action=edit
Bug 42714: (QA follow-up) Use \$0 instead of caller() in cronlogaction

caller(1) was introduced to skip past Koha/Script.pm when cronlogaction
is called from the INIT/END blocks, but it breaks any direct caller that
invokes cronlogaction from within a Try::Tiny try/catch closure or a
callback sub - in those contexts caller(1) resolves to Try/Tiny.pm (or
the calling module) rather than the script itself.

\$0 is always the path of the running script regardless of call depth,
INIT/END phase, or enclosing closure, making it the correct choice here.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to