From 77283f1812f125b31caff9cf4713f4fb6be8fa66 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20Mudr=C3=A1k?= Date: Tue, 30 Oct 2012 12:00:03 +0100 Subject: [PATCH 1/1] MDL-36266 Improve update notification message subject --- lang/en/admin.php | 2 +- lib/pluginlib.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lang/en/admin.php b/lang/en/admin.php index 919a7a9b831..5f47b267115 100644 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -997,7 +997,7 @@ $string['updateavailable_version'] = 'Version {$a}'; $string['updateavailablenot'] = 'Your Moodle code is up-to-date!'; $string['updatenotifications'] = 'Update notifications'; $string['updatenotificationfooter'] = 'Your Moodle site {$a->siteurl} is configured to automatically check for available updates. You are receiving this message as the administrator of the site. You can disable automatic checks for available updates in the Site administration section of the Settings block. You can customize the delivery of this message via your personal Messaging setting in the My profile settings section.'; -$string['updatenotificationsubject'] = 'There are available updates for your Moodle site'; +$string['updatenotificationsubject'] = 'Moodle updates are available ({$a->siteurl})'; $string['updateautocheck'] = 'Automatically check for available updates'; $string['updateautocheck_desc'] = 'If enabled, your site will automatically check for available updates for both Moodle code and all additional plugins. If there is a new update available, a notification will be sent to site admins.'; $string['updateminmaturity'] = 'Required code maturity'; diff --git a/lib/pluginlib.php b/lib/pluginlib.php index 470fa884e37..5c8417ef6b1 100644 --- a/lib/pluginlib.php +++ b/lib/pluginlib.php @@ -1302,7 +1302,7 @@ class available_update_checker { $message->name = 'availableupdate'; $message->userfrom = $mainadmin; $message->userto = $admin; - $message->subject = get_string('updatenotifications', 'core_admin'); + $message->subject = get_string('updatenotificationsubject', 'core_admin', array('siteurl' => $CFG->wwwroot)); $message->fullmessage = $text; $message->fullmessageformat = FORMAT_PLAIN; $message->fullmessagehtml = $html; -- 2.43.0