Skip to content

Commit 30d89f7

Browse files
committed
fixes
1 parent e1fea38 commit 30d89f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ public function getResourceHelperInstance(string $moduleAlias)
15391539
}
15401540
Varien_Profiler::start('CORE::create_object_of::' . $className);
15411541
// phpcs:ignore Ecg.Classes.ObjectInstantiation.DirectInstantiation
1542-
$obj = new $className();
1542+
$obj = new $className($moduleAlias);
15431543
Varien_Profiler::stop('CORE::create_object_of::' . $className);
15441544
return $obj;
15451545
}

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

+1-1
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)