Thread:Project:Support desk/wfProfileIn( METHOD . '-replace' ); what does it mean?/reply

Hi!

The line with "wfProfileIn" is not relevant for how the code actually works. It is used for profiling, which is useful when you debug stuff like a bottleneck or so.

The if construct, which you have posted, only is true, when the option "use_regex" is set. Maybe you did not check the according checkbox when you gave the command to do these replacements?

preg_replace_callback can be used to replace a call to preg_replace with /e modifier. I am unsure what you want to do, but the code as it is looks fine.