Re-add get_section_from_element function and use it instead (also used by galleries)
Re-add get_section_from_element function and use it instead (also used by galleries)

matslindh/kimochi,matslindh/kimochi