1
I'm trying to make my customized text replacement in an external file so there is only need to edit 1 line of code, the include() statement in the list of $patterns/$replacements but can't seem to get it working.
"module.textsanitizer.php"
$patterns[] = "/[u](.*)[/u]/sU";
$replacements[] = '\1';
$patterns[] = "/[d](.*)[/d]/sU";
$replacements[] = '\1';
include_once('custom_text_replacement.php');
...
"custom_text_replacement.php"
$patterns[] = "/bub/isU";
$replacements[] = 'yo[u]';
?>
If I move the contents of custom_text_replacement into the include_once() line, it'll work fine.
my file was mis-spelled