Skip to content

Instantly share code, notes, and snippets.

View barryvdh's full-sized avatar

Barry vd. Heuvel barryvdh

View GitHub Profile
@barryvdh
barryvdh / gist:86181d2975f72bd1f1c861757d42071e
Created November 28, 2021 17:48
ElasticSearch7 on Forge Recipe
# See https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html
echo ">> Import the Elasticsearch PGP Key"
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo ">> Installing from the APT Repository"
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
apt-get update && apt-get -y install elasticsearch
echo ">> Configure Elasticsearch to startup"
diff --git a/vendor/magento/module-email/Model/Template/Filter.php b/vendor/magento/module-email/Model/Template/Filter.php
index 1a7c3683820a..586cb485ee1f 100644
--- a/vendor/magento/module-email/Model/Template/Filter.php
+++ b/vendor/magento/module-email/Model/Template/Filter.php
@@ -618,6 +618,12 @@ public function transDirective($construction)
}
$text = __($text, $params)->render();
+
+ $pattern = '/{{.*?}}/';