diff --git a/protected/humhub/modules/admin/models/forms/StatisticSettingsForm.php b/protected/humhub/modules/admin/models/forms/StatisticSettingsForm.php index 56eac84cf2..d22997e4c5 100644 --- a/protected/humhub/modules/admin/models/forms/StatisticSettingsForm.php +++ b/protected/humhub/modules/admin/models/forms/StatisticSettingsForm.php @@ -45,6 +45,18 @@ class StatisticSettingsForm extends \yii\base\Model ]; } + /** + * @inheritdoc + */ + public function attributeHints() + { + return [ + 'trackingHtmlCode' => Yii::t('AdminModule.settings', 'Inserted script tags must contain a nonce. e.g. {code}', [ + 'code' => '<script nonce={{nonce}}>' + ]), + ]; + } + /** * Saves the form *