Fix variable lang + listing page BBB - refs BT#11636

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent 85aec4f6a9
commit f81539deb7
  1. 4
      plugin/bbb/lib/bbb.lib.php
  2. 6
      plugin/bbb/listing.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']
);

@ -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[] = "<script>var _p = {web_plugin: '" . api_get_path(WEB_PLUGIN_PATH). "'}</script>";
$tpl = new Template($tool_name);
$isGlobal = isset($_GET['global']) ? true : false;

Loading…
Cancel
Save