View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0035211 | mantisbt | bugtracker | public | 2024-12-29 19:45 | 2025-01-06 07:59 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Target Version | 2.28.0 | Fixed in Version | 2.28.0 | ||
Summary | 0035211: Core should allow detecting whether a config is set in the database | ||||
Description | config_is_set() will return the config's default value set in config files, but there is no way to easily determine whether that has an override in the database. | ||||
Tags | No tags attached. | ||||
MantisBT: master ef635829 2024-12-29 18:59 Details Diff |
New config_is_set_in_database() API function Same as existing config_is_set(), except that it returns false if there is not override for the config in the database (i.e. it does not check the default value from config files. This is is needed so that PHPUnit tests are able to change config values and then restore the database to its previous state afterwards. Fixes 0035211 |
Affected Issues 0035211 |
|
mod - core/config_api.php | Diff File |