-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
2.6.1
- '@throws invalid_digest_setting' is not correct
- The param $forum accepts numeric arguments to retrieve a forum from the database
- This is not documented
- is_numeric() will accept floats, general moodle convention is to do !is_object() on the object
- We support this mechanism in old APIs, but its the path to poor performance and we should just remove it and require the forum object as the calling code does.
- There is an unnecessary database call to get the course - should just use $forum->course