MDL-44928 mod_forum: Fix urls in log entries for forum events

This commit is contained in:
John Okely 2014-04-22 15:12:34 +08:00
parent a0461340ff
commit 2b7781d662
7 changed files with 7 additions and 7 deletions

View file

@ -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']));
}

View file

@ -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']));
}

View file

@ -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']));
}

View file

@ -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']));
}
/**

View file

@ -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']));
}
/**

View file

@ -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']));
}
/**

View file

@ -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']));
}
/**