Plugin: BBB: Show plugin_bbb_multiple_urls_cron_apply_to_all in first access URL only

pull/4266/head
Angel Fernando Quiroz Campos 4 years ago
parent bf91fccdb5
commit 6966c1ec7e
  1. 2
      plugin/bbb/cron_close_meeting.php
  2. 2
      plugin/bbb/lib/bbb.lib.php
  3. 17
      plugin/bbb/lib/bbb_plugin.class.php

@ -10,7 +10,7 @@ $plugin = BBBPlugin::create();
$meetingTable = Database::get_main_table('plugin_bbb_meeting');
$roomTable = Database::get_main_table('plugin_bbb_room');
$applyAllUrls = $plugin->get('plugin_bbb_multiple_urls_cron_apply_to_all');
$applyAllUrls = 'true' === $plugin->get('plugin_bbb_multiple_urls_cron_apply_to_all');
$bbb = new bbb();
if ($bbb->pluginEnabled) {

@ -1880,7 +1880,7 @@ class bbb
*
* @return array
*/
public function getActiveSessions($allSites = false)
public function getActiveSessions(bool $allSites = false)
{
$where = ['where' => ['status = ?' => 1]];

@ -44,10 +44,7 @@ class BBBPlugin extends Plugin
*/
protected function __construct()
{
parent::__construct(
'2.10',
'Julio Montoya, Yannick Warnier, Angel Fernando Quiroz Campos, Jose Angel Ruiz, Ghazi Triki, Adnen Manssouri',
[
$settings = [
'tool_enable' => 'boolean',
'host' => 'text',
'salt' => 'text',
@ -74,8 +71,16 @@ class BBBPlugin extends Plugin
'bbb_force_record_generation' => 'checkbox',
'disable_course_settings' => 'boolean',
'meeting_duration' => 'text',
'plugin_bbb_multiple_urls_cron_apply_to_all' => 'checkbox',
]
];
if (1 === (int) api_get_current_access_url_id()) {
$settings['plugin_bbb_multiple_urls_cron_apply_to_all'] = 'checkbox';
}
parent::__construct(
'2.10',
'Julio Montoya, Yannick Warnier, Angel Fernando Quiroz Campos, Jose Angel Ruiz, Ghazi Triki, Adnen Manssouri',
$settings
);
$this->isAdminPlugin = true;

Loading…
Cancel
Save