Dotclear

Ticket #1339 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

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

comment:1 Changed 13 years ago by franck <carnet.franck.paul@…>

  • Status changed from new to closed
  • Resolution set to fixed

(In [e6c853fed57e]) Typo, fixes #1339, thank's ganesh

comment:2 Changed 12 years ago by franck

  • Milestone changed from A definir to 2.5.1
Note: See TracTickets for help on using tickets.

Sites map