MDL-54663 forum: Correct digest link to forum preferences
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 27 May 2016 05:11:26 +0000 (13:11 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 22 Jun 2016 05:11:23 +0000 (13:11 +0800)
mod/forum/lib.php

index 8ab2749..4940d41 100644 (file)
@@ -1022,7 +1022,7 @@ function forum_cron() {
 
                 $headerdata = new stdClass();
                 $headerdata->sitename = format_string($site->fullname, true);
-                $headerdata->userprefs = $CFG->wwwroot.'/user/edit.php?id='.$userid.'&amp;course='.$site->id;
+                $headerdata->userprefs = $CFG->wwwroot.'/user/forum.php?id='.$userid.'&amp;course='.$site->id;
 
                 $posttext = get_string('digestmailheader', 'forum', $headerdata)."\n\n";
                 $headerdata->userprefs = '<a target="_blank" href="'.$headerdata->userprefs.'">'.get_string('digestmailprefs', 'forum').'</a>';