Now courses are viewable by idnumber. Credits to Paolo Oprandi.
(http://moodle.org/mod/forum/discuss.php?d=18442) Merged from MOODLE_15_STABLE
This commit is contained in:
+2
-2
@@ -13,8 +13,8 @@
|
||||
$topic = optional_param('topic',0,PARAM_INT);
|
||||
$studentview = optional_param('studentview','',PARAM_ALPHA);
|
||||
|
||||
if (empty($id) && empty($name)) {
|
||||
error("Must specify course id or short name");
|
||||
if (empty($id) && empty($name) && empty($idnumber)) {
|
||||
error("Must specify course id, short name or idnumber");
|
||||
}
|
||||
|
||||
if (!empty($name)) {
|
||||
|
||||
Reference in New Issue
Block a user