From 4a1a14c9d3de5a77ac098c014e4dcabb93a5d303 Mon Sep 17 00:00:00 2001 From: cap2501 Date: Mon, 28 Aug 2006 02:06:04 +0000 Subject: [PATCH] added nessicary code for ajax course format --- lib/blocklib.php | 4 ++++ 1 file changed, 4 insertions(+) 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(); + } } -- 2.39.5