MDL-44928 mod_forum: Fix urls in log entries for forum events
This commit is contained in:
@@ -79,7 +79,7 @@ class post_created extends \core\event\base {
|
||||
// Single discussion forums are an exception. We show
|
||||
// the forum itself since it only has one discussion
|
||||
// thread.
|
||||
$url = new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid']));
|
||||
$url = new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid']));
|
||||
} else {
|
||||
$url = new \moodle_url('/mod/forum/discuss.php', array('d' => $this->other['discussionid']));
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class post_deleted extends \core\event\base {
|
||||
// Single discussion forums are an exception. We show
|
||||
// the forum itself since it only has one discussion
|
||||
// thread.
|
||||
$url = new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid']));
|
||||
$url = new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid']));
|
||||
} else {
|
||||
$url = new \moodle_url('/mod/forum/discuss.php', array('d' => $this->other['discussionid']));
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ class post_updated extends \core\event\base {
|
||||
// Single discussion forums are an exception. We show
|
||||
// the forum itself since it only has one discussion
|
||||
// thread.
|
||||
$url = new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid']));
|
||||
$url = new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid']));
|
||||
} else {
|
||||
$url = new \moodle_url('/mod/forum/discuss.php', array('d' => $this->other['discussionid']));
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ class readtracking_disabled extends \core\event\base {
|
||||
* @return \moodle_url
|
||||
*/
|
||||
public function get_url() {
|
||||
return new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid']));
|
||||
return new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid']));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -72,7 +72,7 @@ class readtracking_enabled extends \core\event\base {
|
||||
* @return \moodle_url
|
||||
*/
|
||||
public function get_url() {
|
||||
return new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid']));
|
||||
return new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid']));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -72,7 +72,7 @@ class subscription_created extends \core\event\base {
|
||||
* @return \moodle_url
|
||||
*/
|
||||
public function get_url() {
|
||||
return new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid']));
|
||||
return new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid']));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -72,7 +72,7 @@ class subscription_deleted extends \core\event\base {
|
||||
* @return \moodle_url
|
||||
*/
|
||||
public function get_url() {
|
||||
return new \moodle_url('/mod/forum/view.php', array('id' => $this->other['forumid']));
|
||||
return new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid']));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user