netsapiensis/moodle-block_course_menu — pull request #1 by davosmith (2012-01-10 09:49:19+00:00)
Title: Patch to fix icons in Moodle 1.9 version of course menu

The course menu displays identical icons for all activities in a section.

This is due to all the activity / resource entries having CSS class 'iconicon', which is generated from 'icon' + filename of icon file (which in the case of activities is always 'icon.gif' - e.g. [url]/mod/questionnaire/icon.gif, [url]/mod/forum/icon.gif).

This patch uses the last 2 elements from the path and joins them together with a '-' (e.g. 'iconquestionnaire-icon', 'iconforum-icon', or, for an image resource, 'iconf-image'). This means that the CSS class names are always unique.