Skip to content

Commit 6fd83d0

Browse files
committed
fix failed Magento files for version v2.0.2
1 parent 2bd7df0 commit 6fd83d0

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

Controller/Adminhtml/Ajax/RetrieveImage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function execute()
202202
if (!$this->configuration->isEnabledCachePlaceholder()) {
203203
// Only download the real Cloudinary image if not using placeholder
204204
$this->retrieveRemoteImage($this->remoteFileUrl, $localUniqFilePath);
205-
} else if ((strpos($this->getBaseTmpMediaPath(), '/category') != false)) {
205+
} else if ((strpos($this->getBaseTmpMediaPath(), '/category') !== false)) {
206206
$this->retrieveRemoteImage($this->remoteFileUrl, $localUniqFilePath);
207207
} else {
208208
// Save the already-read placeholder image manually

Core/CloudinaryImageManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(
5454
* @param OutputInterface|null $output
5555
* @throws \Exception
5656
*/
57-
public function uploadAndSynchronise(Image $image, OutputInterface $output = null, $retryAttempt = 0)
57+
public function uploadAndSynchronise(Image $image, ?OutputInterface $output = null, $retryAttempt = 0)
5858
{
5959
if (!$this->configuration->isEnabled() || !$this->configuration->hasEnvironmentVariable()) {
6060
return;

view/adminhtml/templates/browser/content.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $cloudinaryMLwidgetOprions = $block->getCloudinaryMediaLibraryWidgetOptions();
3333
title="<?= $escaper->escapeHtml(__('Add from Cloudinary')) ?>"
3434
data-role="add-from-cloudinary-button"
3535
type="button"
36-
data-mage-init='{"cloudinaryMediaLibraryModal": <?= $cloudinaryMLwidgetOprions ?>}'
36+
data-mage-init='{"cloudinaryMediaLibraryModal": <?= /* @noEscape */ $cloudinaryMLwidgetOprions ?>}'
3737
class="action-secondary add-from-cloudinary-button cloudinary-button-with-logo lg-margin-bottom">
3838
<span><?= $escaper->escapeHtml(__('Add from Cloudinary')) ?></span>
3939
</button>

view/adminhtml/templates/catalog/product/helper/gallery.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $cloudinaryMLwidgetOprions = $block->getCloudinaryMediaLibraryWidgetOptions();
3737
title="<?= $escaper->escapeHtmlAttr(__('Add Image/Video')) ?>"
3838
data-role="add-from-cloudinary-button"
3939
type="button"
40-
data-mage-init='{"cloudinaryMediaLibraryModal": <?= $cloudinaryMLwidgetOprions ?>}'
40+
data-mage-init='{"cloudinaryMediaLibraryModal": <?= /* @escapeNotVerified */ $cloudinaryMLwidgetOprions ?>}'
4141
class="action-secondary add-from-cloudinary-button">
4242
<span><?= $escaper->escapeHtmlAttr(__('Add Image/Video')) ?></span>
4343
</button>

view/frontend/templates/product/image.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<?php foreach ($block->getCustomAttributes() as $name => $value): ?>
1414
<?= $escaper->escapeHtmlAttr($name) ?>="<?= $escaper->escapeHtmlAttr($value) ?>"
1515
<?php endforeach; ?>
16-
src="<?= $block->getLazyloadPlaceholder() ?>"
16+
src="<?= $escaper->escapeHtmlAttr($block->getLazyloadPlaceholder()) ?>"
1717
data-original="<?= $escaper->escapeUrl($block->getImageUrl()) ?>"
1818
width="<?= $escaper->escapeHtmlAttr($block->getWidth()) ?>"
1919
height="<?= $escaper->escapeHtmlAttr($block->getHeight()) ?>"

0 commit comments

Comments
 (0)