Reveted Nick's alleged typo fix.

Thank you very much for trying to fix my code, but your change is definitely wrong. get_context_instance needs to be passed a coursemoduleid, not a coursemodule object.

Why did you think there was a typo?

And neither of us had noticed that I had left some debug code in. Removing that.
Reveted Nick's alleged typo fix.

Thank you very much for trying to fix my code, but your change is definitely wrong. get_context_instance needs to be passed a coursemoduleid, not a coursemodule object.

Why did you think there was a typo?

And neither of us had noticed that I had left some debug code in. Removing that.

dilawar/moodle