
Fix for bug 2705:

Decoupling from the beast that is /mod/forum/lib.php, it was a pity to
include 100+ KB of code so that we could reuse 7-8 lines.

This block also wasn't including that library itself, so after Martin
removed that dependency from courses it was broken as well.

dilawar/moodle