Skip to content

Notice when used n:ifcontent and n:snippet #243

@janfejtek

Description

@janfejtek

Version: 2.9.0

Bug Description

When used n:ifcontent and n:snippet on a same element, notice is raised: Undefined variable: __loc

Steps To Reproduce

<div n:ifcontent n:snippet="test"></div>

Expected Behavior

Throw exception that makes sense or do not create notice.

Possible Solution

  • throw exception with invalid tag usage, something like "do not use ifcontent and snippet on same element as it might produce unexpected behavior"
    OR
  • add isset check

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