foreach ($updates['core'] as $update) {
$updateinfo .= $this->moodle_available_update_info($update);
}
+ $updateinfo .= html_writer::tag('p', get_string('updateavailablerecommendation', 'core_admin'),
+ array('class' => 'updateavailablerecommendation'));
}
unset($updates['core']);
// If something has left in the $updates array now, it is updates for plugins.
$string['updateavailable_version'] = 'Version {$a}';
$string['updateavailableinstall'] = 'Install this update';
$string['updateavailablenot'] = 'Your Moodle code is up-to-date!';
+$string['updateavailablerecommendation'] = 'We strongly recommend you keep your Moodle site updated to the latest version, so that you can be sure you have all our latest fixes for security issues and other bugs.';
$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 Administration block. You can customize the delivery of this message via your personal Messaging setting in the My profile settings section.';
$string['updatenotificationsubject'] = 'Moodle updates are available ({$a->siteurl})';
$text .= get_string('updateavailabledetailslink', 'core_admin', $a) . PHP_EOL;
$a = array('url' => html_writer::link($CFG->wwwroot.'/'.$CFG->admin.'/index.php', $CFG->wwwroot.'/'.$CFG->admin.'/index.php'));
$html .= html_writer::tag('p', get_string('updateavailabledetailslink', 'core_admin', $a)) . PHP_EOL;
+
+ $text .= PHP_EOL . get_string('updateavailablerecommendation', 'core_admin') . PHP_EOL;
+ $html .= html_writer::tag('p', get_string('updateavailablerecommendation', 'core_admin')) . PHP_EOL;
}
if (!empty($pluginupdates)) {
}
$a = array('siteurl' => $CFG->wwwroot);
- $text .= get_string('updatenotificationfooter', 'core_admin', $a) . PHP_EOL;
+ $text .= PHP_EOL . get_string('updatenotificationfooter', 'core_admin', $a) . PHP_EOL;
$a = array('siteurl' => html_writer::link($CFG->wwwroot, $CFG->wwwroot));
$html .= html_writer::tag('footer', html_writer::tag('p', get_string('updatenotificationfooter', 'core_admin', $a),
array('style' => 'font-size:smaller; color:#333;')));