Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-11-12 08:53:59 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-11-12 08:53:59 +0400
commit73fcfa6b969ac57b505a72b9c81631f087333be2 (patch)
treea32e2a688cb972ffa0c8f2527a2a826e4522e54f /plugins/PrivacyManager/templates
parent10ce59ade2616ae459a8e840fb515231a1466ec1 (diff)
fix activate / deactivate DNT did not work
Diffstat (limited to 'plugins/PrivacyManager/templates')
-rw-r--r--plugins/PrivacyManager/templates/privacySettings.twig6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/PrivacyManager/templates/privacySettings.twig b/plugins/PrivacyManager/templates/privacySettings.twig
index 0aee177d59..f208067abb 100644
--- a/plugins/PrivacyManager/templates/privacySettings.twig
+++ b/plugins/PrivacyManager/templates/privacySettings.twig
@@ -78,7 +78,7 @@
</table>
</div>
- <input type="hidden" name="nonce" value="{{ nonce }}">
+ <input type="hidden" name="nonce" value="{% if anonymizeIP.enabled %}{{ deactivateNonce }}{% else %}{{ activateNonce }}{% endif %}">
<input type="submit" value="{{ 'General_Save'|translate }}" id="privacySettingsSubmit" class="submit"/>
</form>
@@ -271,16 +271,18 @@
<p>
{% if dntSupport %}
{% set action='deactivate' %}
+ {% set nonce=deactivateNonce %}
<strong>{{ 'PrivacyManager_DoNotTrack_Enabled'|translate }}</strong>
<br/>
{{ 'PrivacyManager_DoNotTrack_EnabledMoreInfo'|translate }}
{% else %}
{% set action='activate' %}
+ {% set nonce=activateNonce %}
{{ 'PrivacyManager_DoNotTrack_Disabled'|translate }} {{ 'PrivacyManager_DoNotTrack_DisabledMoreInfo'|translate }}
{% endif %}
</p>
<span style="margin-left:20px;">
- <a href='{{ {'module':'CorePluginsAdmin','token_auth':token_auth,'action':action,'pluginName':'DoNotTrack'} | urlRewriteWithParameters }}#DNT'>&rsaquo;
+ <a href='{{ {'module':'CorePluginsAdmin','nonce':nonce,'action':action,'pluginName':'DoNotTrack'} | urlRewriteWithParameters }}#DNT'>&rsaquo;
{% if dntSupport %}{{ 'PrivacyManager_DoNotTrack_Disable'|translate }} {{ 'General_NotRecommended'|translate }}
{% else %}{{ 'PrivacyManager_DoNotTrack_Enable'|translate }} {{ 'General_Recommended'|translate }}{% endif %}
<br/>