mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fixes for encoded entities
This commit is contained in:
parent
cfb20182fb
commit
76446c9402
@ -68,7 +68,7 @@ class Design extends BaseModel
|
|||||||
'name',
|
'name',
|
||||||
'design',
|
'design',
|
||||||
'is_active',
|
'is_active',
|
||||||
'is_template',
|
// 'is_template',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function company()
|
public function company()
|
||||||
|
@ -85,7 +85,11 @@ class PdfMaker
|
|||||||
|
|
||||||
$loader = new \Twig\Loader\FilesystemLoader(storage_path());
|
$loader = new \Twig\Loader\FilesystemLoader(storage_path());
|
||||||
$twig = new \Twig\Environment($loader);
|
$twig = new \Twig\Environment($loader);
|
||||||
$template = $twig->createTemplate($template);
|
|
||||||
|
$string_extension = new \Twig\Extension\StringLoaderExtension();
|
||||||
|
$twig->addExtension($string_extension);
|
||||||
|
|
||||||
|
$template = $twig->createTemplate(html_entity_decode($template));
|
||||||
$template = $template->render($this->options);
|
$template = $template->render($this->options);
|
||||||
|
|
||||||
$f = $this->document->createDocumentFragment();
|
$f = $this->document->createDocumentFragment();
|
||||||
|
@ -94,7 +94,7 @@
|
|||||||
"symfony/mailgun-mailer": "^6.1",
|
"symfony/mailgun-mailer": "^6.1",
|
||||||
"symfony/postmark-mailer": "^6.1",
|
"symfony/postmark-mailer": "^6.1",
|
||||||
"turbo124/beacon": "^1.5",
|
"turbo124/beacon": "^1.5",
|
||||||
"twig/twig": "^3.0",
|
"twig/twig": "^3",
|
||||||
"twilio/sdk": "^6.40",
|
"twilio/sdk": "^6.40",
|
||||||
"webpatser/laravel-countries": "dev-master#75992ad",
|
"webpatser/laravel-countries": "dev-master#75992ad",
|
||||||
"wepay/php-sdk": "^0.3",
|
"wepay/php-sdk": "^0.3",
|
||||||
|
2
composer.lock
generated
2
composer.lock
generated
@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "a3cef8412df6b0cc9371807991ab699a",
|
"content-hash": "08bc4729962b495b68162a069269f74f",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "adrienrn/php-mimetyper",
|
"name": "adrienrn/php-mimetyper",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user