Skip to content

lang-files causing error #4852

@wm-simon

Description

@wm-simon

Bug description

When you add a language-file at /resources/lang/{lang} with the same filename like a collection handle, there is shown an error on the backend.

How to reproduce

Collection aktuelles
image

Lang aktuelles
image
Error:

htmlspecialchars(): Argument #1 ($string) must be of type string, array given (View: \vendor\statamic\cms\resources\views\partials\nav-main.blade.php)

Logs

No response

Versions

Statamic 3.2.24 Pro
Laravel 8.73.2
PHP 8.0.12

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

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