diff --git a/plugin/bbb/lib/bbb.lib.php b/plugin/bbb/lib/bbb.lib.php index 76331bcfc7..370fa1ace6 100755 --- a/plugin/bbb/lib/bbb.lib.php +++ b/plugin/bbb/lib/bbb.lib.php @@ -31,6 +31,7 @@ class bbb private $courseCode; private $sessionId; private $groupId; + private $plugin; /** * Constructor (generates a connection to the API and the Chamilo settings @@ -47,6 +48,7 @@ class bbb // Initialize video server settings from global settings $plugin = BBBPlugin::create(); + $this->plugin = $plugin; $bbbPlugin = $plugin->get('tool_enable'); @@ -580,7 +582,7 @@ class bbb } $recordLink = Display::url( - get_lang('ViewRecord'), + $this->plugin->get_lang('ViewRecord'), $record['playbackFormatUrl'], ['target' => '_blank'] ); diff --git a/plugin/bbb/listing.php b/plugin/bbb/listing.php index 3930af2338..ebf540ebf3 100755 --- a/plugin/bbb/listing.php +++ b/plugin/bbb/listing.php @@ -9,6 +9,12 @@ require_once __DIR__.'/config.php'; $plugin = BBBPlugin::create(); $tool_name = $plugin->get_lang('Videoconference'); + +$htmlHeadXtra[] = api_get_js_simple( + api_get_path(WEB_PLUGIN_PATH) . 'bbb/resources/utils.js' +); +$htmlHeadXtra[] = ""; + $tpl = new Template($tool_name); $isGlobal = isset($_GET['global']) ? true : false;