Skip to content

Commit

Permalink
MDL-14262, fix incorrect link, see tracker, merged from MOODLE_19_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng committed Apr 27, 2008
1 parent 879acf7 commit db1b15c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions mod/forum/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

require_once('../../config.php');
require_once('lib.php');

$course = required_param('course', PARAM_INT); // course id
$id = optional_param('id', 0, PARAM_INT); // user id
$course = optional_param('course', PARAM_INT);
$id = optional_param('id', PARAM_INT);
$user = optional_param('user', PARAM_INT);
if(!empty($user)){
$course = $id;
$id = $user;
}
$mode = optional_param('mode', 'posts', PARAM_ALPHA);
$page = optional_param('page', 0, PARAM_INT);
$perpage = optional_param('perpage', 5, PARAM_INT);
Expand All @@ -32,7 +36,9 @@
require_course_login($course);
}

add_to_log($course->id, "forum", "user report", "user.php?id=$course->id&user=$user->id&mode=$mode", "$user->id");
//add_to_log($course->id, "forum", "user report", "user.php?id=$course->id&user=$user->id&mode=$mode", "$user->id");
add_to_log($course->id, "forum", "user report",
"user.php?course=$course->id&id=$user->id&mode=$mode", "$user->id");

$strforumposts = get_string('forumposts', 'forum');
$strparticipants = get_string('participants');
Expand Down

0 comments on commit db1b15c

Please sign in to comment.