MDL-45381 mod_forum: changed event URL for subscription created/deleted events
authorMark Nelson <markn@moodle.com>
Mon, 30 Jun 2014 01:37:44 +0000 (18:37 -0700)
committerMark Nelson <markn@moodle.com>
Mon, 30 Jun 2014 01:37:44 +0000 (18:37 -0700)
mod/forum/classes/event/subscription_created.php
mod/forum/classes/event/subscription_deleted.php

index e5af00f..19d53ac 100644 (file)
@@ -77,7 +77,7 @@ class subscription_created extends \core\event\base {
      * @return \moodle_url
      */
     public function get_url() {
-        return new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid']));
+        return new \moodle_url('/mod/forum/subscribers.php', array('id' => $this->other['forumid']));
     }
 
     /**
index 738a5c0..f011059 100644 (file)
@@ -77,7 +77,7 @@ class subscription_deleted extends \core\event\base {
      * @return \moodle_url
      */
     public function get_url() {
-        return new \moodle_url('/mod/forum/view.php', array('f' => $this->other['forumid']));
+        return new \moodle_url('/mod/forum/subscribers.php', array('id' => $this->other['forumid']));
     }
 
     /**