matomo-org / plugin-TrackingSpamPrevention

GNU General Public License v3.0
12 stars 7 forks source link

"From" name in email when an IP was banned is not translated #74

Closed tsteur closed 1 year ago

tsteur commented 1 year ago

In https://github.com/matomo-org/plugin-TrackingSpamPrevention/blob/4.1.3/BanIpNotificationEmail.php#L25 we are sending an email when an IP was banned.

The from name is currently CoreHome_WebAnalyticsReports see

image

This is likely happening because the email is sent during tracking and translations aren't loaded. That means we would need to set the from name untranslated.