Rename the EventSocket class.

This commit is contained in:
markjcrane
2016-04-02 19:23:16 -06:00
parent 7fa92ef54f
commit 51ea37ed18
6 changed files with 13 additions and 14 deletions

View File

@@ -25,7 +25,7 @@
*/
require_once "root.php";
require_once "resources/classes/EventSocket.php";
require_once "resources/classes/event_socket.php";
//define the install class
class detect_switch {
@@ -144,7 +144,7 @@ require_once "resources/classes/EventSocket.php";
}
protected function connect_event_socket(){
$esl = new EventSocket;
$esl = new event_socket;
if ($esl->connect($this->event_host, $this->event_port, $this->event_password)) {
$this->event_socket = $esl->reset_fp();
return true;
@@ -153,7 +153,7 @@ require_once "resources/classes/EventSocket.php";
}
protected function event_socket_request($cmd) {
$esl = new EventSocket($this->event_socket);
$esl = new event_socket($this->event_socket);
$result = $esl->request($cmd);
$esl->reset_fp();
return $result;

View File

@@ -348,7 +348,7 @@ include "root.php";
}
protected function restart_switch() {
$esl = new EventSocket;
$esl = new event_socket;
if(!$esl->connect($this->global_settings->switch_event_host(), $this->global_settings->switch_event_port(), $this->global_settings->switch_event_password())) {
throw new Exception("Failed to connect to switch");
}