Skip to content

Commit 80edb99

Browse files
authored
Removed references to '%context%' (dead code)
1 parent a25c107 commit 80edb99

File tree

1 file changed

+3
-10
lines changed
  • lib/internal/Magento/Framework/RequireJs

1 file changed

+3
-10
lines changed

lib/internal/Magento/Framework/RequireJs/Config.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,22 +155,15 @@ public function getConfig()
155155
{
156156
$distributedConfig = '';
157157
$customConfigFiles = $this->fileSource->getFiles($this->design->getDesignTheme(), self::CONFIG_FILE_NAME);
158+
158159
foreach ($customConfigFiles as $file) {
159160
/** @var $fileReader \Magento\Framework\Filesystem\File\Read */
160161
$fileReader = $this->readFactory->create($file->getFilename(), DriverPool::FILE);
161162
$config = $fileReader->readAll($file->getName());
162-
$distributedConfig .= str_replace(
163-
['%config%', '%context%'],
164-
[$config, $file->getModule()],
165-
self::PARTIAL_CONFIG_TEMPLATE
166-
);
163+
$distributedConfig .= str_replace('%config%', $config, self::PARTIAL_CONFIG_TEMPLATE);
167164
}
168165

169-
$fullConfig = str_replace(
170-
['%function%', '%usages%'],
171-
[$distributedConfig],
172-
self::FULL_CONFIG_TEMPLATE
173-
);
166+
$fullConfig = str_replace(['%function%', '%usages%'], [$distributedConfig], self::FULL_CONFIG_TEMPLATE);
174167

175168
if ($this->minification->isEnabled('js')) {
176169
$fullConfig = $this->minifyAdapter->minify($fullConfig);

0 commit comments

Comments
 (0)