Created
May 19, 2017 09:20
-
-
Save iancassidyweb/52c9814f18b2a22da4b06c44959f71db to your computer and use it in GitHub Desktop.
Magento 2.1.6 - Image Resizer Patch - Allow CLI Override
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: www/vendor/magento/module-catalog/Helper/Image.php | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- www/vendor/magento/module-catalog/Helper/Image.php | |
+++ www/vendor/magento/module-catalog/Helper/Image.php | |
@@ -494,6 +494,6 @@ | |
protected function isScheduledActionsAllowed() | |
{ | |
$model = $this->_getModel(); | |
- if ($model->isBaseFilePlaceholder() || $model->isCached()) { | |
+ if ($model->isBaseFilePlaceholder() || ($model->isCached() && php_sapi_name() !== 'cli')) { | |
return false; | |
} | |
return true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment