Skip to content

Commit

Permalink
Merge pull request #455 from kennethormandy/bugfix/missing-preflight-…
Browse files Browse the repository at this point in the history
…twig-variables

Fixes missing memory limit and time limit Twig variables
  • Loading branch information
bencroker authored Mar 9, 2024
2 parents 4b83e5c + f289a4b commit 57e808a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/controllers/SendoutsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,8 @@ public function actionPreview(int $sendoutId): Response
'testContactCriteria' => ['status' => ContactElement::STATUS_ACTIVE],
'testContacts' => $campaignType ? $campaignType->getTestContactsWithDefault() : [],
'actions' => [],
'system' => [
'memoryLimit' => ini_get('memory_limit'),
'timeLimit' => ini_get('max_execution_time'),
],
'memoryLimit' => ini_get('memory_limit'),
'timeLimit' => ini_get('max_execution_time'),
'isDynamicWebAliasUsed' => SettingsHelper::isDynamicWebAliasUsed($sendout->siteId),
'getHtmlBodyActionUrl' => UrlHelper::actionUrl('campaign/sendouts/get-html-body'),
'sendTestActionUrl' => UrlHelper::actionUrl('campaign/sendouts/send-test'),
Expand Down

0 comments on commit 57e808a

Please sign in to comment.