mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
community block MDL-24826 change 'Add to community block' message
This commit is contained in:
parent
2b27ae7274
commit
48cff382d1
@ -77,7 +77,7 @@ if ($add != -1 and $confirm and confirm_sesskey()) {
|
|||||||
$course->url = optional_param('courseurl', '', PARAM_URL);
|
$course->url = optional_param('courseurl', '', PARAM_URL);
|
||||||
$course->imageurl = optional_param('courseimageurl', '', PARAM_URL);
|
$course->imageurl = optional_param('courseimageurl', '', PARAM_URL);
|
||||||
$communitymanager->block_community_add_course($course, $USER->id);
|
$communitymanager->block_community_add_course($course, $USER->id);
|
||||||
$notificationmessage = $OUTPUT->notification(get_string('addedtoblock', 'hub'),
|
$notificationmessage = $OUTPUT->notification(get_string('addedtoblock', 'community_hub'),
|
||||||
'notifysuccess');
|
'notifysuccess');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
$string['activities'] = 'Activities';
|
$string['activities'] = 'Activities';
|
||||||
$string['add'] = 'Add';
|
$string['add'] = 'Add';
|
||||||
|
$string['addedtoblock'] = 'A link to this course has been added in your community block';
|
||||||
$string['addtocommunityblock'] = 'Save a link to this course';
|
$string['addtocommunityblock'] = 'Save a link to this course';
|
||||||
$string['addcommunitycourse'] = 'Add community course';
|
$string['addcommunitycourse'] = 'Add community course';
|
||||||
$string['additionalcoursedesc'] = '{$a->lang} Creator: {$a->creatorname} - Publisher: {$a->publishername} - Subject: {$a->subject}
|
$string['additionalcoursedesc'] = '{$a->lang} Creator: {$a->creatorname} - Publisher: {$a->publishername} - Subject: {$a->subject}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user