concrete5/concrete5 — pull request #187 by jordanlev (2011-11-11 02:06:48+00:00)
Title: Updating View::section() function to be more robust

Updating View::section() with 3 functional changes:
1) Now works for blocks that are in the global scrapbook (by using Page::getCurrentPage() to determine current page instead of $this->c)
2) Now works even if the given url/path has a leading slash
3) Now excludes the home page (because it will mess up nav menu logic, and isn't needed because every page is always under the home page so no need to ever call this function for it).