Passing a $filename argument to the getBlockPath() or getBlockUrl() functions in concrete/libraries/block_view.php should return a path that has that filename appended to it (as per the getBlockUrl function comments: "Returns a relative path to the current block's directory. If a filename is specified it will be appended and searched for as well.")
However, it does not do this. Looking at version 5.3.3.1, line 109 should be this:
$base = DIR_FILES_BLOCK_TYPES . '/' . $obj->getBlockTypeHandle() . '/' . $filename;
and line 131 should be this:
$base = DIR_REL . '/' . DIRNAME_BLOCKS . '/' . $obj->getBlockTypeHandle() . '/' . $filename;
Patch is attached.
andrew
I'm confused
DIR_BASE . '/blocks' which should be the same as DIR_REL . '/blocks/'. Is there something non-standard about your setup? Is the problem perhaps somewhere else in the inclusion process?