diff --git a/classes/placeholders/placeholders/coursecalendarurl.php b/classes/placeholders/placeholders/coursecalendarurl.php index 1babc2934..6f8408cdf 100644 --- a/classes/placeholders/placeholders/coursecalendarurl.php +++ b/classes/placeholders/placeholders/coursecalendarurl.php @@ -81,13 +81,12 @@ public static function return_value( $bu = new booking_utils(); $user = singleton_service::get_instance_of_user($userid); - $value = '' . - $bu->booking_generate_calendar_subscription_link($user, 'courses') . + $value = '' . + get_string('linktocalendarurltext', 'mod_booking') . ''; // Save the value to profit from singleton. placeholders_info::$placeholders[$cachekey] = $value; - } else { $value = get_string('sthwentwrongwithplaceholder', 'mod_booking', $classname); } diff --git a/lang/de/booking.php b/lang/de/booking.php index 80ff7b1da..9f037eaf7 100755 --- a/lang/de/booking.php +++ b/lang/de/booking.php @@ -1338,6 +1338,7 @@ und verschwindet nach Ende des Meetings wieder.'; $string['linknotvalid'] = 'Dieser Link / dieses Event ist derzeit nicht verfügbar. Bitte probieren Sie es kurz vor Beginn noch einmal, wenn Sie dieses Event gebucht haben.'; +$string['linktocalendarurltext'] = "Hier geht's zum Kalender"; $string['linktocourse'] = "Hier geht's zum Kurs"; $string['linktomoodlecourseonbookedbutton'] = 'Zeige Link auf Moodle-Kurs direkt am Buchen-Button'; $string['linktomoodlecourseonbookedbutton_desc'] = 'Statt eines extra Links auf den Moodle-Kurs wird diese Option den Buchungsbutton in einen Link auf den gebuchten Moodle-Kurs umwandeln'; diff --git a/lang/en/booking.php b/lang/en/booking.php index e8081017d..3c1f00c7f 100755 --- a/lang/en/booking.php +++ b/lang/en/booking.php @@ -1347,6 +1347,7 @@ until the end of the session."; $string['linknotvalid'] = 'This link or meeting is not accessible. If it is a meeting you have booked, please check again, shortly before start.'; +$string['linktocalendarurltext'] = "Link to calendar"; $string['linktocourse'] = "Link to course"; $string['linktomoodlecourseonbookedbutton'] = 'Show Link to Moodle course directly on booked button'; $string['linktomoodlecourseonbookedbutton_desc'] = 'Instead of an extra link, this will transform the booked button the a link to the moodle course';