Tags: simonoff/mephisto
Tags
Fix display of theme homepage links Many thanks to Gustavo Sales (aka vatsu) for pointing out this bug and proposing a fix: http://github.com/vatsu/mephisto/commit/e7b0ecaaca4457dd7d542ac218baf979e1b7a190 http://github.com/vatsu/mephisto/commit/fbe32e923ad6dfb963a8311053214b3395aeb37b In order to minimize code duplication in the *.erb files, I've rewritten this code as a helper method.
replace use of '<<' operator with '+=' operator in find_child_section… …s and find_decendant_sections in SiteDrop We found that mutiple calls to the 'child_sections' drop filter was modifying the value of the path attribute inside of SectionDrops. The SiteDrop methods find_child_sections and find_decentdent_sections used the '<<' operator to append a '/' charecter to the path. This had the side effect of modifying the original string in memory. The "+=" while slower, uses a copy of the string passed as parameter. The gave us the behavior we would expect.