aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2012-08-20 09:46:21 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2012-08-20 09:46:21 +0200
commit3544d24791d4df96fff45d4f385bce368769cd80 (patch)
tree15cd7d6569f23456aa4e36293134d0debbe5a7ed /models
parent819cebeb27c5ab8b4a04fc8660667ec9a29681c1 (diff)
downloadelgg-3544d24791d4df96fff45d4f385bce368769cd80.tar.gz
elgg-3544d24791d4df96fff45d4f385bce368769cd80.tar.bz2
fixed conference duration bug
Diffstat (limited to 'models')
-rw-r--r--models/model.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/models/model.php b/models/model.php
index 85e605352..32a9c928a 100644
--- a/models/model.php
+++ b/models/model.php
@@ -2287,7 +2287,10 @@ function event_calendar_create_bbb_conf($event) {
$bbb_server_url = rtrim(elgg_get_plugin_setting('bbb_server_url','event_calendar'), '/') . '/';
if ($bbb_security_salt) {
$day_in_minutes = 60*24;
- $duration = (int)(($event->real_end_time-$event->start_date)/60)+$day_in_minutes;
+ $now = time();
+ // fix duration bug
+ # $duration = (int)(($event->real_end_time-$event->start_date)/60)+$day_in_minutes;
+ $duration = (int)(($event->real_end_time-$now)/60)+$day_in_minutes;
$title = urlencode($event->title);
$params = "name=$title&meetingID={$event->guid}&duration=$duration";
$checksum = sha1('create'.$params.$bbb_security_salt);