Skip to content

LanguageSupport.module code has a hook creation problem/typo #2192

@er314

Description

@er314

See those 2 lines of code :
https://github.com/processwire/processwire/blob/4e9e99c62994b325f262737ab8e019ea43e59c81/wire/modules/LanguageSupport/LanguageSupport.module#L209

        $this->addHookMethod('Inputfield::getLanguageValue', $this, 'hookInputfieldGetLanguageValue');
        $this->addHookMethod('Inputfield::setLanguageValue', $this, 'hookInputfieldGetLanguageValue');

-> Is it me or there's a problem here ? (2x Get)

Note that this was identified not by tracking a bug, but incidently by code reading,
while working on the request 578 "Change the default language : successful Proof-of-Concept"

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