From: cap2501 Date: Mon, 28 Aug 2006 02:06:04 +0000 (+0000) Subject: added nessicary code for ajax course format X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4a1a14c9d3de5a77ac098c014e4dcabb93a5d303;p=moodle.git added nessicary code for ajax course format --- diff --git a/lib/blocklib.php b/lib/blocklib.php index b5bbbc78e3..8d7b33ca30 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -324,7 +324,11 @@ function blocks_print_group(&$page, &$pageblocks, $position) { $obj->_print_shadow(); } } else { + global $COURSE; + if(!empty($COURSE->javascriptportal)) + $COURSE->javascriptportal->currentblocksection = $position; $obj->_print_block(); + } }