Skip to content

Commit 48f0597

Browse files
author
DenysTsymbal
committed
8739-lazy-load-webp-on-category-page-mini-refactor
1 parent c0a6f5d commit 48f0597

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Setup/Patch/Data/ConvertConfigToJsonPatch.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ public function apply()
7373
$this->moduleDataSetup->startSetup();
7474

7575
$connection = $this->moduleDataSetup->getConnection();
76+
$tableName = $this->moduleDataSetup->getTable('core_config_data');
77+
7678
$query = $connection->select()
77-
->from($this->moduleDataSetup->getTable('core_config_data'), ['config_id','value'])
79+
->from($tableName, ['config_id','value'])
7880
->where(
7981
'path = ?',
8082
Config::XML_PATH_LAZY_BLOCKS
@@ -83,7 +85,6 @@ public function apply()
8385

8486
$result = $connection->fetchAll($query);
8587

86-
$tableName = $this->moduleDataSetup->getTable('core_config_data');
8788
foreach ($result as $scope) {
8889
if (!isset($scope['config_id']) || !isset($scope['value'])) {
8990
continue;

0 commit comments

Comments
 (0)