Skip to content

Skip missing placeholders #19

@MGatner

Description

@MGatner

Verifying matches (MenusFilter:81):

// Swap the content for the placeholder and verify a match
$body = str_replace('{{' . $alias . '}}', $content, $body, $count);
if ($count === 0)
{
	throw new RuntimeException('Missing placeholder text for menu: ' . $alias);
}

... is turning out to be too punishing. If the placeholder is not located the filter should just ignore it, or maybe put a debug log entry.

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