MDL-41157 calendar: improve calendar_get_course_cached
authorDan Poltawski <dan@moodle.com>
Wed, 14 Aug 2013 02:46:19 +0000 (10:46 +0800)
committerDan Poltawski <dan@moodle.com>
Wed, 14 Aug 2013 03:05:27 +0000 (11:05 +0800)
commitd20b0aa56737c41926d20894c7eb86bfef922226
tree1f28c17bed17eb22022381a35b594a704d303ab8
parent3607961d8f37fe3a7cfbcd448eeb1da3d00ef846
MDL-41157 calendar: improve calendar_get_course_cached

The function get_course() introduced in 2.5.1 will use $COURSE and
$SITE to avoid an uncessary DB query, simplifying the logic of this
function and improving perf.
calendar/lib.php