Ticket #1339 (closed defect: fixed)
Bug in <tpl:AttachmentIf>
Reported by: | ganesh | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 2.5.1 |
Component: | module:plugins | Version: | 2.4 |
Severity: | normal | Keywords: | attachments plugin |
Cc: |
Description
Using the operator attribute causes an error :
Fatal error: Using $this when not in object context in /blahblahblah/www/plugins/attachments/_public.php on line 91
My solution is to replace line 91
$operator = isset($attr['operator']) ? $this->getOperator($attr['operator']) : '&&';
with
$operator = isset($attr['operator']) ? $GLOBALS['core']->tpl->getOperator($attr['operator']) : '&&';
hope it'll help. G.
Change History
Note: See
TracTickets for help on using
tickets.
(In [e6c853fed57e]) Typo, fixes #1339, thank's ganesh