Fix for 2 Area::getTotalBlocksInArea() bugs

Permalink 1 0 Browser Info Environment
2 problems with Area::getTotalBlocksInArea():

1) calling it before or after Area::display() requires you to either pass in the global $c object or not, which is inconsistent (see )

2) calling it on an area containing a layout doesn't give you the count of the sub-areas that are inside the layout (see )

See this attachment for solutions to both of these:

Status: New
olacom replied on at Permalink Reply
I agree,

I got 2 time confused because of some condition I did with counting the total of blocks and when a area is switch to a layout, that condition no longer work.

Would be great to fix that


concrete5 Environment Information


Browser User-Agent String