Skip to content

Commit 44fb962

Browse files
sreichelkiatng
andauthored
Bugfix: hide exception, ref #4303 (#4344)
* Bugfix: hide exception, ref #4303 * Update app/code/core/Mage/Core/Model/Layout.php Co-authored-by: Ng Kiat Siong <[email protected]> --------- Co-authored-by: Ng Kiat Siong <[email protected]>
1 parent 4a3b6fa commit 44fb962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/Core/Model/Layout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ public function createBlock($type, $name = '', array $attributes = [])
462462
}
463463
$name = 'ANONYMOUS_' . count($this->_blocks);
464464
} elseif (isset($this->_blocks[$name]) && Mage::getIsDeveloperMode()) {
465-
Mage::throwException(Mage::helper('core')->__('Block with name "%s" already exists', $name));
465+
//Mage::throwException(Mage::helper('core')->__('Block with name "%s" already exists', $name));
466466
}
467467

468468
$block->setType($type);

0 commit comments

Comments
 (0)