
Fixing a bug, see http://moodle.org/mod/forum/discuss.php?d=37545

Instead of grabbing variables defined by the course format with
global $var; the block now recomputes them itself.

Of course this also introduces a (significant?) performance hit.

I think it's much preferable to "live with" the hit until a good
solution is developed rather than have a hacky solution that could
break anytime for any obscure reason (case in point). Objections?

dilawar/moodle