File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/core/Mage/Core/Model Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1537,7 +1537,7 @@ public function getResourceHelperInstance(string $moduleAlias)
15371537 }
15381538 Varien_Profiler::start ('CORE::create_object_of:: ' . $ className );
15391539 // phpcs:ignore Ecg.Classes.ObjectInstantiation.DirectInstantiation
1540- $ obj = new $ className ();
1540+ $ obj = new $ className ($ moduleAlias );
15411541 Varien_Profiler::stop ('CORE::create_object_of:: ' . $ className );
15421542 return $ obj ;
15431543 }
Original file line number Diff line number Diff line change @@ -497,7 +497,7 @@ public function addBlock($block, $blockName)
497497 * @return Mage_Core_Block_Abstract
498498 * @throws Mage_Core_Exception
499499 */
500- protected function _getBlockInstance ($ block , array $ attributes = [])
500+ protected function _getBlockInstance ($ type , array $ attributes = [])
501501 {
502502 $ className = Mage::getConfig ()->getBlockClassName ($ type );
503503 if ($ className === false || !class_exists ($ className )) {
You can’t perform that action at this time.
0 commit comments