Skip to content

Constants + filer leads to too many shorthand attributes #22

@kumy

Description

@kumy

Hi,

tsmarty2c fails to parse {GK_WAYPOINT_SERVICE_URL_GC|link:null:'_blank' nofilter} while it work well with smarty itself.
In this case, GK_WAYPOINT_SERVICE_URL_GC is a php constant

        define('GK_WAYPOINT_SERVICE_URL_GC', getenv('GK_WAYPOINT_SERVICE_URL_GC') ?: 'https://www.geocaching.com');

The error is reported as:

In smarty_internal_templatecompilerbase.php line 22:

  Syntax error in template "file:/xxxxx.tpl"  on line 22 "<td>{GK_WAYPOINT_SERVICE_URL_GC|link:null:'_blank' nofilter}</td>" too many shorthand attributes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions