community block MDL-24826 change 'Add to community block' message

This commit is contained in:
jerome mouneyrac 2010-10-27 07:56:27 +00:00
parent 2b27ae7274
commit 48cff382d1
2 changed files with 2 additions and 1 deletions

View File

@ -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');
} }

View File

@ -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}