BugFix-moh class bad ref (#1635)
fixed incorrect referenced to the switch_recordings class
This commit is contained in:
parent
596319b885
commit
e7b177a174
|
|
@ -35,9 +35,15 @@ include "root.php";
|
||||||
public $select_value;
|
public $select_value;
|
||||||
public $select_options;
|
public $select_options;
|
||||||
private $xml;
|
private $xml;
|
||||||
|
private $db;
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
if (!$this->db) {
|
||||||
require_once "resources/classes/database.php";
|
require_once "resources/classes/database.php";
|
||||||
|
$database = new database;
|
||||||
|
$database->connect();
|
||||||
|
$this->db = $database->db;
|
||||||
|
}
|
||||||
$this->domain_uuid = $_SESSION['domain_uuid'];
|
$this->domain_uuid = $_SESSION['domain_uuid'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -76,7 +82,7 @@ include "root.php";
|
||||||
//recordings
|
//recordings
|
||||||
if (is_dir($_SERVER["PROJECT_ROOT"].'/app/recordings')) {
|
if (is_dir($_SERVER["PROJECT_ROOT"].'/app/recordings')) {
|
||||||
require_once "app/recordings/resources/classes/switch_recordings.php";
|
require_once "app/recordings/resources/classes/switch_recordings.php";
|
||||||
$recordings_c = new recordings;
|
$recordings_c = new switch_recordings;
|
||||||
$recordings = $recordings_c->list_recordings();
|
$recordings = $recordings_c->list_recordings();
|
||||||
if (sizeof($recordings) > 0) {
|
if (sizeof($recordings) > 0) {
|
||||||
$select .= "<optgroup label='".$text['label-recordings']."'>";
|
$select .= "<optgroup label='".$text['label-recordings']."'>";
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,15 @@ include "root.php";
|
||||||
class switch_recordings {
|
class switch_recordings {
|
||||||
|
|
||||||
public $domain_uuid;
|
public $domain_uuid;
|
||||||
|
private $db;
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
|
if (!$this->db) {
|
||||||
require_once "resources/classes/database.php";
|
require_once "resources/classes/database.php";
|
||||||
|
$database = new database;
|
||||||
|
$database->connect();
|
||||||
|
$this->db = $database->db;
|
||||||
|
}
|
||||||
$this->domain_uuid = $_SESSION['domain_uuid'];
|
$this->domain_uuid = $_SESSION['domain_uuid'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue