WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Split up config.php to clarify use #288

@prodigion

Description

@prodigion

Currently, config.php has configuration parameters, reads configuration from an environment file, validates configuration, and has sql transaction code. These should be mostly split to separate files to separate what users should/shouldn't touch.

Default configuration could go in a separate file (/includes/DefaultSettings.php), with site-specific configuration could go in its own file (LocalSettings.php). Or put it all in the database. It shouldn't rely on environment variables or .env files

Any logic should be moved to a separate file.

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