mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-44928 mod_forum: Fix urls in log entries for forum events
This commit is contained in:
parent
a0461340ff
commit
2b7781d662
7 changed files with 7 additions and 7 deletions
|
@ -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']));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue