diff --git a/admin/renderer.php b/admin/renderer.php index 6e53a42ad2ed2..2d803cf167e47 100644 --- a/admin/renderer.php +++ b/admin/renderer.php @@ -295,6 +295,7 @@ public function admin_notifications_page($maturity, $insecuredataroot, $errorsdi $output .= $this->header(); $output .= $this->output->heading(get_string('notifications', 'admin')); + $output .= $this->upgrade_news_message(); $output .= $this->maturity_info($maturity); $output .= empty($CFG->disableupdatenotifications) ? $this->available_updates($availableupdates, $availableupdatesfetch) : ''; $output .= $this->insecure_dataroot_warning($insecuredataroot); @@ -754,6 +755,21 @@ protected function moodle_copyright() { return $this->box($copyrighttext, 'copyright'); } + /** + * Display a transient notification for important upgrades messages for + * specific releases. + * + * @return string HTML to output. + */ + protected function upgrade_news_message() { + return $this->notification( + get_string('importantupdates_content', 'admin'), + 'info', + false, + get_string('importantupdates_title', 'admin') + ); + } + /** * Display a warning about installing development code if necesary. * @param int $maturity @@ -776,6 +792,7 @@ protected function maturity_info($maturity) { return $this->warning($warningtext, $level); } + /** * Displays the info about available Moodle core and plugin updates * diff --git a/lang/en/admin.php b/lang/en/admin.php index be392c748380c..42df89d43c4d6 100644 --- a/lang/en/admin.php +++ b/lang/en/admin.php @@ -764,6 +764,11 @@ $string['iconvrequired'] = 'Installing ICONV extension is required.'; $string['igbinary322buggyversion'] = 'The php-igbinary extension installed on the site can lead to problems when running with PHP 7.2. You are recommended to either upgrade to php-igbinary 3.2.5 or later, or alternatively to upgrade to PHP 7.3 or later.'; $string['ignore'] = 'Ignore'; +$string['importantupdates_title'] = 'Important update about Chat and Survey activities'; +$string['importantupdates_content'] = 'In the next Moodle 5.0, planned for release in April 2025, the Chat and Survey activities will +be removed from core Moodle. They will be available as plugins in the +Moodle plugins directory.
+If you wish to continue using Chat or Survey in your site, you will be able to install them as plugins before upgrading to Moodle 5.0.'; $string['includemoduleuserdata'] = 'Include module user data'; $string['incompatibleblocks'] = 'Incompatible blocks'; $string['indexdata'] = 'Index data';