MantisBT: master f45ea669

Author Committer Branch Timestamp Parent
dregad dregad master 2020-03-21 08:53 master 4800cfb0
Changeset

Refactor config_eval() to use PREG_SET_ORDER

Call preg_match_all() with PREG_SET_ORDER flag instead of the default
PREG_PATTERN_ORDER allows simplification of the replacement loop using
a foreach.

Assign the resulting match array elements to named variables makes the
code self-documenting and easier to read.

mod - core/config_api.php Diff File