File tree 2 files changed +2
-2
lines changed
app/code/core/Mage/Core/Model
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1539,7 +1539,7 @@ public function getResourceHelperInstance(string $moduleAlias)
1539
1539
}
1540
1540
Varien_Profiler::start ('CORE::create_object_of:: ' . $ className );
1541
1541
// phpcs:ignore Ecg.Classes.ObjectInstantiation.DirectInstantiation
1542
- $ obj = new $ className ();
1542
+ $ obj = new $ className ($ moduleAlias );
1543
1543
Varien_Profiler::stop ('CORE::create_object_of:: ' . $ className );
1544
1544
return $ obj ;
1545
1545
}
Original file line number Diff line number Diff line change @@ -497,7 +497,7 @@ public function addBlock($block, $blockName)
497
497
* @return Mage_Core_Block_Abstract
498
498
* @throws Mage_Core_Exception
499
499
*/
500
- protected function _getBlockInstance ($ block , array $ attributes = [])
500
+ protected function _getBlockInstance ($ type , array $ attributes = [])
501
501
{
502
502
$ className = Mage::getConfig ()->getBlockClassName ($ type );
503
503
if ($ className === false || !class_exists ($ className )) {
You can’t perform that action at this time.
0 commit comments