Skip to content

Commit

Permalink
Bugfix: hide exception, ref #4303 (#4344)
Browse files Browse the repository at this point in the history
* Bugfix: hide exception, ref #4303

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

Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>

---------

Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com>
  • Loading branch information
sreichel and kiatng authored Nov 12, 2024
1 parent 4a3b6fa commit 44fb962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/core/Mage/Core/Model/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public function createBlock($type, $name = '', array $attributes = [])
}
$name = 'ANONYMOUS_' . count($this->_blocks);
} elseif (isset($this->_blocks[$name]) && Mage::getIsDeveloperMode()) {
Mage::throwException(Mage::helper('core')->__('Block with name "%s" already exists', $name));
//Mage::throwException(Mage::helper('core')->__('Block with name "%s" already exists', $name));
}

$block->setType($type);
Expand Down

0 comments on commit 44fb962

Please sign in to comment.