Skip to content

Variable naming in the config.inc.php file #10479

Open
@shamblett

Description

@shamblett

shamblett created Redmine issue ID 10479

Some variables in the config.inc.php file start with '$modx_' but most don't. This is not a problem unless you are using this file to create a MODx object in API mode only, possibly embedding this in a 3rd party application say. When you include the config.inc.php file these generic names such as '$http_host' pollute the environment downstream of the include and can cause difficult to find errors. Prefixing all these variables with '$modx_' would help to alleviate this and provide consistency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-setupproposalProposal about improvement aka RFC. Need to be discussed before start implementation.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions