Skip to content

locales/core.php: the common.inc check is always true #502

Closed

Description

@caseysoftware

locales/core.php L30:

if (W2P_BASE_DIR . '/locales/' . $AppUI->user_locale . '/common.inc') {

tests a non-empty string, so it's always true and readfile() runs even when the file doesn't exist (a warning on a missing or partial language). It should be file_exists(...), falling back to locales/en/common.inc.

Part of #495.

Activity

  1. added a commit that references this issue on Oct 24, 2026
    a41a9c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions