Skip to content

Commit

Permalink
Merge branch 'pr/626' into devel
Browse files Browse the repository at this point in the history
Fix for dummy blocks not working (@jeroenvermeulen)
  • Loading branch information
aricwatson authored and aricwatson committed Jun 8, 2015
1 parent 778601d commit de7cc14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,3 +384,5 @@ Magento CE 1.8+ or EE 1.13+, see [these instructions](https://github.com/nexcess
* Added fix for community poll problems
* [#516] Fixes multiple sessions generated on first page visit (@jharrisonau)
* [#796] Ignore additional GET Parameters in Varnish Cache via Configuration (@thampe)
* [#626] Fix for dummy blocks not working (@jeroenvermeulen)

Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ protected function _getEsiData( $blockObject, $esiOptions ) {
$esiData->setParentUrl( Mage::app()->getRequest()->getRequestString() );
}
if( is_array( $esiOptions['dummy_blocks'] ) ) {
$esiData->setDummyBlocks( $esiOptions['dummy_blocks'] );
$dummyBlocks = array();
foreach( $esiOptions['dummy_blocks'] as $key => $value ) {
$dummyBlocks[] = ( empty($value) && !is_numeric($key) ) ? $key : $value;
}
$esiData->setDummyBlocks( $dummyBlocks );
} else {
Mage::helper( 'turpentine/debug' )->logWarn(
'Invalid dummy_blocks for block: %s',
Expand Down

0 comments on commit de7cc14

Please sign in to comment.