Fixes bug in configjs and interfaceconfigjs pages
parent
5a451115f4
commit
06cc20fb2a
|
@ -7,11 +7,11 @@ include '../app/includes/messages-show.php';
|
||||||
$action = $_REQUEST['action'] ?? '';
|
$action = $_REQUEST['action'] ?? '';
|
||||||
$agent = $_REQUEST['agent'] ?? '';
|
$agent = $_REQUEST['agent'] ?? '';
|
||||||
|
|
||||||
require '../app/classes/config.php';
|
require '../app/classes/settings.php';
|
||||||
require '../app/classes/agent.php';
|
require '../app/classes/agent.php';
|
||||||
require '../app/classes/conference.php';
|
require '../app/classes/conference.php';
|
||||||
|
|
||||||
$configObject = new Config();
|
$settingsObject = new Settings();
|
||||||
$agentObject = new Agent($dbWeb);
|
$agentObject = new Agent($dbWeb);
|
||||||
|
|
||||||
// connect to Jilo database
|
// connect to Jilo database
|
||||||
|
@ -188,14 +188,14 @@ if ($response['db'] === null) {
|
||||||
case 'configjs':
|
case 'configjs':
|
||||||
$mode = $_REQUEST['mode'] ?? '';
|
$mode = $_REQUEST['mode'] ?? '';
|
||||||
$raw = ($mode === 'raw');
|
$raw = ($mode === 'raw');
|
||||||
$platformConfigjs = $configObject->getPlatformConfigjs($platformDetails[0]['jitsi_url'], $raw);
|
$platformConfigjs = $settingsObject->getPlatformConfigjs($platformDetails[0]['jitsi_url'], $raw);
|
||||||
include '../app/templates/data-configjs.php';
|
include '../app/templates/data-configjs.php';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'interfaceconfigjs':
|
case 'interfaceconfigjs':
|
||||||
$mode = $_REQUEST['mode'] ?? '';
|
$mode = $_REQUEST['mode'] ?? '';
|
||||||
$raw = ($mode === 'raw');
|
$raw = ($mode === 'raw');
|
||||||
$platformInterfaceConfigjs = $configObject->getPlatformInterfaceConfigjs($platformDetails[0]['jitsi_url'], $raw);
|
$platformInterfaceConfigjs = $settingsObject->getPlatformInterfaceConfigjs($platformDetails[0]['jitsi_url'], $raw);
|
||||||
include '../app/templates/data-interfaceconfigjs.php';
|
include '../app/templates/data-interfaceconfigjs.php';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue