]> git.mjollnir.org Git - moodle.git/commit
MDL-11699 - Make build_navigation more helpful by having it optionally build the...
authortjhunt <tjhunt>
Wed, 10 Oct 2007 14:00:41 +0000 (14:00 +0000)
committertjhunt <tjhunt>
Wed, 10 Oct 2007 14:00:41 +0000 (14:00 +0000)
commit1ba3ad7df5fc02bfebfbf947e9549d694ead1281
tree8358d60a4e004e2556ffd18dc186c9424bebcf1c
parent8ddcdd86cb2cb003cc02b7faf2cc26ea75913d8d
MDL-11699 - Make build_navigation more helpful by having it optionally build the activity and activityinstance links too, if you pass a $cm object. Note that this only does extra DB queries if you do pass a $cm object, and it does not have all the required fields, but in this case it will winge at you in developer debug mode. If you get your $cm using get_coursemodule_from_instance or get_coursemodule_from_id, which is best practice these days, then you won't have a problem.
lib/weblib.php