From 32ac7a59d3519a964b65585dff34b2aa60d2f6f9 Mon Sep 17 00:00:00 2001 From: Guillaume COEUGNET Date: Fri, 1 Apr 2016 10:05:52 +0200 Subject: [PATCH] Add port parameter and code enhancement --- includes/alerts/transport.canopsis.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/alerts/transport.canopsis.php b/includes/alerts/transport.canopsis.php index def4b095d8..9c00d667a2 100644 --- a/includes/alerts/transport.canopsis.php +++ b/includes/alerts/transport.canopsis.php @@ -1,8 +1,8 @@ -require_once "./lib/PhpAmqpLib/autoload.php"; +require_once $config['install_dir']."/lib/PhpAmqpLib/autoload.php"; // Configurations $host = $opts["host"]; -$port = 5672; +$port = $opts["port"]; $user = $opts["user"]; $pass = $opts["passwd"]; $vhost = $opts["vhost"];