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)
1537
1537
}
1538
1538
Varien_Profiler::start ('CORE::create_object_of:: ' . $ className );
1539
1539
// phpcs:ignore Ecg.Classes.ObjectInstantiation.DirectInstantiation
1540
- $ obj = new $ className ();
1540
+ $ obj = new $ className ($ moduleAlias );
1541
1541
Varien_Profiler::stop ('CORE::create_object_of:: ' . $ className );
1542
1542
return $ obj ;
1543
1543
}
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