Skip to content

Commit

Permalink
# [LOW] Wrong language in mail Blade templates [gh-658]
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas K. Dionysopoulos <nicholas@akeeba.com>
  • Loading branch information
nikosdion committed May 10, 2024
1 parent 42c6a64 commit 72da175
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php die(); ?>
Akeeba Panopticon 1.1.4
================================================================================
# [LOW] Wrong message about not having Akeeba Backup installed shown when adding a new site (gh-661)
# [LOW] Wrong message about not having Akeeba Backup installed shown when adding a new site [gh-661]
# [LOW] Wrong language in mail Blade templates [gh-658]

Akeeba Panopticon 1.1.3
================================================================================
Expand Down
3 changes: 2 additions & 1 deletion src/Task/ActionSummaryEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ private function getRenderedResultsForEmail(
APATH_USER_CODE . '/ViewTemplates/Mailtemplates',
],
];
$container->language->loadLanguage($language ?: $container->appConfig->get('language', 'en-GB'));
$fakeView = new FakeView($container, ['name' => 'Mailtemplates']);

try
Expand All @@ -336,7 +337,7 @@ private function getRenderedResultsForEmail(
}

// Render the messages as plain text
$template = $template = 'Mailtemplates/mail_action_summary' . (empty($language) ? '' : '.') . $language
$template = 'Mailtemplates/mail_action_summary' . (empty($language) ? '' : '.') . $language
. 'text';
$renderedText = '';

Expand Down
1 change: 1 addition & 0 deletions src/Task/ExtensionsUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ private function getRenderedResultsForEmail(string $language, array $updateStatu
APATH_USER_CODE . '/ViewTemplates/Mailtemplates',
],
];
$container->language->loadLanguage($language ?: $container->appConfig->get('language', 'en-GB'));
$fakeView = new Html($container);
$rendered = '';

Expand Down
1 change: 1 addition & 0 deletions src/Task/UpdateSummaryEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ private function getRenderedResultsForEmail(string $language): array
APATH_USER_CODE . '/ViewTemplates/Mailtemplates',
],
];
$container->language->loadLanguage($language ?: $container->appConfig->get('language', 'en-GB'));
$fakeView = new Html($container);
$rendered = '';

Expand Down

0 comments on commit 72da175

Please sign in to comment.