View Issue Details

IDProjectCategoryView StatusLast Update
0035211mantisbtbugtrackerpublic2025-01-06 07:59
Reporterdregad Assigned Todregad  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Target Version2.28.0Fixed in Version2.28.0 
Summary0035211: 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.

TagsNo tags attached.

Relationships

child of 0035212 resolveddregad GetLinkAttributesTest does not reset html_make_links config after tests 

Activities

Related Changesets

MantisBT: master ef635829

2024-12-29 18:59

dregad


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