From 29750492a27520db6beb9ec26897c91c5d5a8994 Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Thu, 9 Sep 2010 02:50:53 +0000 Subject: [PATCH] MDL-23308, added help text to course files page --- files/renderer.php | 2 +- lang/en/moodle.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/renderer.php b/files/renderer.php index 1616a921a6d..925dcc8a21f 100644 --- a/files/renderer.php +++ b/files/renderer.php @@ -46,7 +46,7 @@ class core_files_renderer extends plugin_renderer_base { public function render_files_tree_viewer(files_tree_viewer $tree) { - $html = $this->output->notification(get_string('coursefileswarning'), 'notifyproblem'); + $html = $this->output->heading_with_help(get_string('coursefileswarning'), 'coursefileswarning', 'moodle'); $html .= '
'; foreach($tree->path as $path) { $html .= $path; diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 58f1405e0af..417032bb739 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -294,7 +294,8 @@ $string['coursecreatorsdescription'] = 'Course creators can create new courses.' $string['coursedeleted'] = 'Deleted course {$a}'; $string['coursefiles'] = 'Legacy course files'; $string['coursefilesedit'] = 'Edit legacy course files'; -$string['coursefileswarning'] = 'Course files are deprecated since Moodle 2.0, please use external repositories instead as much as possible.'; +$string['coursefileswarning'] = 'Course files are deprecated'; +$string['coursefileswarning_help'] = 'Course files are deprecated since Moodle 2.0, please use external repositories instead as much as possible.'; $string['courseformatdata'] = 'Course format data'; $string['courseformats'] = 'Course formats'; $string['coursegrades'] = 'Course grades'; -- 2.43.0