I'm not sure if this is a bug in core... but inside theme() the global $theme_path may be set to the path of a MODULE!

http://api.drupal.org/api/function/theme/6

This causes incorrect behavior in function event_include_files() since when it's called by event_block() the $file has the value 'modules/system/event.css'.

The problem is that hook_block is called by theme.inc to display a block.

Since D6 has alternative css file override methods, the easiest fix would be to just remove this code.

CommentFileSizeAuthor
#1 event-include-files-640154-1.patch1.04 KBpwolanin

Comments

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB
killes@www.drop.org’s picture

Status: Needs review » Fixed

Thanks! Never noticed this due to always using the upcoming events block...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.