diff --git a/library/Director/PropertyModifier/PropertyModifierReplace.php b/library/Director/PropertyModifier/PropertyModifierReplace.php index 1924f974..c6cb6bed 100644 --- a/library/Director/PropertyModifier/PropertyModifierReplace.php +++ b/library/Director/PropertyModifier/PropertyModifierReplace.php @@ -23,6 +23,10 @@ class PropertyModifierReplace extends PropertyModifierHook public function transform($value) { - return str_replace($this->settings['string'], $this->settings['replacement'], $value); + return str_replace( + $this->getSetting('string'), + $this->getSetting('replacement'), + $value + ); } }