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_options;
|
||||
private $xml;
|
||||
private $db;
|
||||
|
||||
public function __construct() {
|
||||
require_once "resources/classes/database.php";
|
||||
if (!$this->db) {
|
||||
require_once "resources/classes/database.php";
|
||||
$database = new database;
|
||||
$database->connect();
|
||||
$this->db = $database->db;
|
||||
}
|
||||
$this->domain_uuid = $_SESSION['domain_uuid'];
|
||||
}
|
||||
|
||||
|
|
@ -76,7 +82,7 @@ include "root.php";
|
|||
//recordings
|
||||
if (is_dir($_SERVER["PROJECT_ROOT"].'/app/recordings')) {
|
||||
require_once "app/recordings/resources/classes/switch_recordings.php";
|
||||
$recordings_c = new recordings;
|
||||
$recordings_c = new switch_recordings;
|
||||
$recordings = $recordings_c->list_recordings();
|
||||
if (sizeof($recordings) > 0) {
|
||||
$select .= "<optgroup label='".$text['label-recordings']."'>";
|
||||
|
|
|
|||
|
|
@ -30,9 +30,15 @@ include "root.php";
|
|||
class switch_recordings {
|
||||
|
||||
public $domain_uuid;
|
||||
private $db;
|
||||
|
||||
public function __construct() {
|
||||
require_once "resources/classes/database.php";
|
||||
if (!$this->db) {
|
||||
require_once "resources/classes/database.php";
|
||||
$database = new database;
|
||||
$database->connect();
|
||||
$this->db = $database->db;
|
||||
}
|
||||
$this->domain_uuid = $_SESSION['domain_uuid'];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue