Fix error "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"