danmarsden/moodle-plagiarism_turnitin — pull request #23 by mattgibson (2011-12-23 12:45:01+00:00)
Title: Removed echo statements so print_disclosure() and update_status() return HTML

Hi Dan

I found that if I construct pages using renderer methods, then print the HTML at the end after collecting it as a string, the Turnitin plugin messes it up by outputting stuff using 'echo', which then appears before the header. These changes make it so that the plugin works like the renderer and returns HTML, which can be echoed or not depending on the client module's needs. It'll need some core changes of course to make this work, so a new $plugin->requires I suppose, but I think it's worth it.

Matt