Skip to content
Browse files

Fixed up some forum logging

  • Loading branch information...
1 parent 36d4a9a commit 02300104893fee9fd1c5eb87c768f26615a49590 martin committed Jul 31, 2002
Showing with 3 additions and 3 deletions.
  1. +1 −1 mod/forum/discuss.php
  2. +2 −2 mod/forum/subscribe.php
View
2 mod/forum/discuss.php
@@ -26,7 +26,7 @@
require_login($course->id);
}
- add_to_log($course->id, "forum", "view discussion", "view.php?".$_SERVER["QUERY_STRING"], "$discussion->id");
+ add_to_log($course->id, "forum", "view discussion", "discuss.php?".$_SERVER["QUERY_STRING"], "$discussion->id");
unset($SESSION->fromdiscussion);
View
4 mod/forum/subscribe.php
@@ -50,15 +50,15 @@
if ( forum_is_subscribed($USER->id, $forum->id) ) {
if (forum_unsubscribe($USER->id, $forum->id) ) {
- add_to_log($course->id, "forum", "unsubscribe", "index.php?id=$course->id", "$forum->id");
+ add_to_log($course->id, "forum", "unsubscribe", "view.php?f=$forum->id", "$forum->id");
redirect($returnto, "You are now NOT subscribed to receive '$forum->name' by email.", 1);
} else {
error("Could not unsubscribe you from that forum", "$HTTP_REFERER");
}
} else { // subscribe
if (forum_subscribe($USER->id, $forum->id) ) {
- add_to_log($course->id, "forum", "subscribe", "index.php?id=$course->id", "$forum->id");
+ add_to_log($course->id, "forum", "subscribe", "view.php?f=$forum->id", "$forum->id");
redirect($returnto, "You are now subscribed to recieve '$forum->name' by email.", 1);
} else {
error("Could not subscribe you to that forum", "$HTTP_REFERER");

0 comments on commit 0230010

Please sign in to comment.
Something went wrong with that request. Please try again.