Skip to content

Commit 6a3a965

Browse files
committed
fixes
1 parent ad45f4b commit 6a3a965

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

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

Lines changed: 1 addition & 1 deletion
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)