Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24a9a61
)
NOBUG course is not a required param (we assume site level if none specified)
author
Martin Dougiamas
<martin@moodle.com>
Fri, 2 Jul 2010 08:43:27 +0000
(08:43 +0000)
committer
Martin Dougiamas
<martin@moodle.com>
Fri, 2 Jul 2010 08:43:27 +0000
(08:43 +0000)
mod/forum/user.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/forum/user.php
b/mod/forum/user.php
index
daa016b
..
0204128
100644
(file)
--- a/
mod/forum/user.php
+++ b/
mod/forum/user.php
@@
-27,7
+27,7
@@
require_once('../../config.php');
require_once('lib.php');
// Course ID
-$course =
required_param('course'
, PARAM_INT);
+$course =
optional_param('course', SITEID
, PARAM_INT);
// User ID
$id = optional_param('id', 0, PARAM_INT);
$mode = optional_param('mode', 'posts', PARAM_ALPHA);