diff --git a/CHANGES.md b/CHANGES.md index 67e3089d4fcffd53e4179bd666346e7c476da194..0c9ccd5817e8a79117bacfd7d8e4025d040aa20b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -6,6 +6,7 @@ Changes ### Unreleased +* 2018-03-06 - Bugfix: Add a default title string to this plugin instead of fetching it from block_course_overview which is EOL. * 2018-03-06 - Activity icons should be rendered with image_icon() and not with pix_icon anymore. * 2018-03-06 - pix_url() is deprecated in Moodle 3.3, change to pix_icon() and fontawesome icons. * 2017-12-12 - Prepare compatibility for Moodle 3.3, no functionality change. diff --git a/lang/en/block_course_overview_campus.php b/lang/en/block_course_overview_campus.php index db426f6c882c8bedb93c44439d8f65077d275ca5..eddd760093209e40a8081d9d663c92b8356db566 100644 --- a/lang/en/block_course_overview_campus.php +++ b/lang/en/block_course_overview_campus.php @@ -30,6 +30,7 @@ $string['all'] = 'All'; $string['appearancesettingheading'] = 'Appearance'; $string['blocktitle'] = 'Block title'; $string['blocktitle_desc'] = 'This display name is shown as the title of the block'; +$string['blocktitledefault'] = 'Course overview'; $string['category'] = 'Parent category'; $string['categorycoursefilter'] = 'Activate parent category filter'; $string['categorycoursefilter_desc'] = 'Allow users to filter courses by parent category'; diff --git a/settings.php b/settings.php index 32c9920482cfbcd9a293b07527bfc36bc28aca73..253754b12bd71c1a4c1ad8c4dddad44c7fe91bc8 100644 --- a/settings.php +++ b/settings.php @@ -105,7 +105,7 @@ if ($hassiteconfig) { $settingspage->add(new admin_setting_configtext('block_course_overview_campus/blocktitle', get_string('blocktitle', 'block_course_overview_campus', null, true), get_string('blocktitle_desc', 'block_course_overview_campus', null, true), - get_string('pluginname', 'block_course_overview', null, true), + get_string('blocktitledefault', 'block_course_overview_campus', null, true), PARAM_TEXT)); // Add settings page to the admin settings category.