Skip to content

Commit

Permalink
v2.0.0: Fix for CONTRIB-5984
Browse files Browse the repository at this point in the history
  • Loading branch information
jfederico committed Nov 20, 2015
1 parent ebb2f5f commit f3ed03a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions lang/en/bigbluebuttonbn.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@
$string['mod_form_field_notification_modified_help'] = 'Send a notification to users enrolled to let them know that this activity has been modified';
$string['mod_form_field_notification_msg_created'] = 'created';
$string['mod_form_field_notification_msg_modified'] = 'modified';
$string['mod_form_field_notification_msg_at'] = 'at';


$string['modulename'] = 'BigBlueButtonBN';
Expand Down
5 changes: 3 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ function bigbluebuttonbn_process_post_save(&$bigbluebuttonbn) {
} else {
$action = get_string('mod_form_field_notification_msg_modified', 'bigbluebuttonbn');
}
$at = get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn');

// Add evento to the calendar when if openingtime is set
if ( isset($bigbluebuttonbn->openingtime) && $bigbluebuttonbn->openingtime ){
Expand Down Expand Up @@ -437,11 +438,11 @@ function bigbluebuttonbn_process_post_save(&$bigbluebuttonbn) {
$msg->activity_description = trim($bigbluebuttonbn->intro);
$msg->activity_openingtime = "";
if ($bigbluebuttonbn->openingtime) {
$msg->activity_openingtime = calendar_day_representation($bigbluebuttonbn->openingtime).' at '.calendar_time_representation($bigbluebuttonbn->openingtime);
$msg->activity_openingtime = calendar_day_representation($bigbluebuttonbn->openingtime).' '.$at.' '.calendar_time_representation($bigbluebuttonbn->openingtime);
}
$msg->activity_closingtime = "";
if ($bigbluebuttonbn->closingtime ) {
$msg->activity_closingtime = calendar_day_representation($bigbluebuttonbn->closingtime).' at '.calendar_time_representation($bigbluebuttonbn->closingtime);
$msg->activity_closingtime = calendar_day_representation($bigbluebuttonbn->closingtime).' '.$at.' '.calendar_time_representation($bigbluebuttonbn->closingtime);
}
$msg->activity_owner = $USER->firstname.' '.$USER->lastname;

Expand Down

0 comments on commit f3ed03a

Please sign in to comment.