From 1b946ac810553d24a9ef12fb28480b64b135f966 Mon Sep 17 00:00:00 2001
From: Alexander Bias <alexander.bias@uni-ulm.de>
Date: Tue, 6 Mar 2018 20:52:07 +0100
Subject: [PATCH] Bugfix: Add a default title string to this plugin instead of
 fetching it from block_course_overview which is EOL

---
 CHANGES.md                               | 1 +
 lang/en/block_course_overview_campus.php | 1 +
 settings.php                             | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CHANGES.md b/CHANGES.md
index 67e3089..0c9ccd5 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 db426f6..eddd760 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 32c9920..253754b 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.
-- 
GitLab