Commit 87e8185c authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic Committed by Robert Lyon

Bug 1736033: change privacy footer link for logged in user

When a user is logged in the 'Privacy statement' link in the footer should go to
/account/userprivacy.php

when no user is logged in then it should go to
/privacy.php

behatnotneeded

Change-Id: Ic0ded32c71a2f4e0f2238559c4c8a3fb0269f5b9
parent f83fb54d
......@@ -3078,6 +3078,7 @@ function right_nav() {
function footer_menu($all=false) {
global $USER;
$wwwroot = get_config('wwwroot');
$menu = array(
......@@ -3086,7 +3087,7 @@ function footer_menu($all=false) {
'title' => get_string('termsandconditions'),
),
'privacystatement' => array(
'url' => $wwwroot . 'privacy.php',
'url' => ($USER->is_logged_in() ? $wwwroot . 'account/userprivacy.php' : $wwwroot . 'privacy.php'),
'title' => get_string('privacystatement'),
),
'about' => array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment