mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Hint for setting "HTML tracking code" (#6580)
This commit is contained in:
parent
226d9e624a
commit
137b8fb6f9
@ -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' => '<code><script nonce={{nonce}}></code>'
|
||||
]),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves the form
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user