mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #713, use the default language to send email
and not only to build the email body message
This commit is contained in:
@@ -208,8 +208,6 @@ class updates
|
|||||||
$content.= "\n\n".l10n('It only takes a few clicks.');
|
$content.= "\n\n".l10n('It only takes a few clicks.');
|
||||||
$content.= "\n\n".l10n('Running on an up-to-date Piwigo is important for security.');
|
$content.= "\n\n".l10n('Running on an up-to-date Piwigo is important for security.');
|
||||||
|
|
||||||
switch_lang_back();
|
|
||||||
|
|
||||||
pwg_mail_admins(
|
pwg_mail_admins(
|
||||||
array(
|
array(
|
||||||
'subject' => l10n('Piwigo %s is available, please update', $new_versions_string),
|
'subject' => l10n('Piwigo %s is available, please update', $new_versions_string),
|
||||||
@@ -223,6 +221,8 @@ class updates
|
|||||||
true // only webmasters
|
true // only webmasters
|
||||||
);
|
);
|
||||||
|
|
||||||
|
switch_lang_back();
|
||||||
|
|
||||||
// save notify
|
// save notify
|
||||||
conf_update_param(
|
conf_update_param(
|
||||||
'update_notify_last_notification',
|
'update_notify_last_notification',
|
||||||
|
|||||||
Reference in New Issue
Block a user