Skip to content

Possible [Bug]: Wrong value returned while retrieving lines from language file #43

Closed
@olivervogel

Description

@olivervogel

I just noticed that when 'key' and 'value' are the same in language files, the Lang class returns the key instead of the existing value.

Line in Language file (/app/lang/en/test.php):

'rabbit' => 'rabbit'

Retrieving the line:

return Lang::get('test.rabbit');

Result:

'test.rabbit'

As if the language key doesn't exists.

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