File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
app/code/core/Mage/Core/Model/Layout Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -405,10 +405,16 @@ protected function _getUpdateString($handle)
405
405
public function fetchRecursiveUpdates ($ updateXml )
406
406
{
407
407
foreach ($ updateXml ->children () as $ child ) {
408
- if (strtolower ($ child ->getName ()) == 'update ' && isset ($ child ['handle ' ])) {
409
- $ this ->merge ((string )$ child ['handle ' ]);
410
- // Adding merged layout handle to the list of applied hanles
411
- $ this ->addHandle ((string )$ child ['handle ' ]);
408
+ if ((strtolower ($ child ->getName ()) == 'update ' ) && isset ($ child ['handle ' ])) {
409
+ $ allow = true ;
410
+ if (isset ($ child ['ifconfig ' ]) && ($ configPath = (string )$ child ['ifconfig ' ])) {
411
+ $ allow = Mage::getStoreConfigFlag ($ configPath );
412
+ }
413
+ if ($ allow ) {
414
+ $ this ->merge ((string )$ child ['handle ' ]);
415
+ // Adding merged layout handle to the list of applied hanles
416
+ $ this ->addHandle ((string )$ child ['handle ' ]);
417
+ }
412
418
}
413
419
}
414
420
return $ this ;
You can’t perform that action at this time.
0 commit comments