Skip to content

Commit

Permalink
MDL-36266 Improve update notification message subject
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Oct 30, 2012
1 parent 7e8ae12 commit 2399585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lang/en/admin.php
Expand Up @@ -1000,7 +1000,7 @@
$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';
Expand Down
2 changes: 1 addition & 1 deletion lib/pluginlib.php
Expand Up @@ -1329,7 +1329,7 @@ protected function cron_notify(array $notifications) {
$message->name = 'availableupdate';
$message->userfrom = get_admin();
$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;
Expand Down

0 comments on commit 2399585

Please sign in to comment.