Skip to content

Commit c731359

Browse files
committed
Only show privacy info if analytics enabled
1 parent f9dd245 commit c731359

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

event/listener.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ public function validate_googleanalytics_id($event)
180180
*/
181181
public function append_agreement()
182182
{
183-
if ((strpos($this->user->page['page_name'], 'ucp') !== 0)
183+
if (!$this->config['googleanalytics_id']
184+
|| (strpos($this->user->page['page_name'], 'ucp') !== 0)
184185
|| !$this->template->retrieve_var('S_AGREEMENT')
185186
|| ($this->template->retrieve_var('AGREEMENT_TITLE') !== $this->language->lang('PRIVACY')))
186187
{

0 commit comments

Comments
 (0)