]> git.mjollnir.org Git - moodle.git/commitdiff
added nessicary code for ajax course format
authorcap2501 <cap2501>
Mon, 28 Aug 2006 02:06:04 +0000 (02:06 +0000)
committercap2501 <cap2501>
Mon, 28 Aug 2006 02:06:04 +0000 (02:06 +0000)
lib/blocklib.php

index b5bbbc78e3eda9d91f2a282412c5757767fb101b..8d7b33ca30ada28333ad08f095ce32359e9ac3aa 100644 (file)
@@ -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();
+            
         }
     }