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

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent e5f0002860
commit 27a14e6393
  1. 3
      plugin/bbb/lib/bbb.lib.php
  2. 7
      plugin/bbb/listing.php

@ -36,6 +36,7 @@ class bbb
private $courseCode;
private $sessionId;
private $groupId;
private $plugin;
/**
* Constructor (generates a connection to the API and the Chamilo settings
@ -667,7 +668,7 @@ class bbb
}
$recordLink = Display::url(
get_lang('ViewRecord'),
$this->plugin->get_lang('ViewRecord'),
$record['playbackFormatUrl'],
['target' => '_blank']
);

@ -10,6 +10,13 @@ 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;
$isGlobalPerUser = isset($_GET['user_id']) ? (int) $_GET['user_id']: false;

Loading…
Cancel
Save