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 (seehttp://www.concrete5.org/community/forums/customizing_c5/using_gett... )

2) calling it on an area containing a layout doesn't give you the count of the sub-areas that are inside the layout (seehttp://www.concrete5.org/community/forums/usage/gettotalblocksinare... )

See this attachment for solutions to both of these:
http://www.concrete5.org/index.php?cID=123030#125622...


Status: New
jordanlev
olacom replied on at Permalink Reply
olacom
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

Cheers

concrete5 Environment Information

all

Browser User-Agent String

all