From 2f732d324caf4dccc85462a1a02e223cb86da559 Mon Sep 17 00:00:00 2001 From: --global Date: Wed, 26 Sep 2018 11:21:53 +0530 Subject: [PATCH 1/2] Add function call with namespace --- src/helper/service-utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helper/service-utils.php b/src/helper/service-utils.php index 6f978e0..7a41c9c 100644 --- a/src/helper/service-utils.php +++ b/src/helper/service-utils.php @@ -16,8 +16,8 @@ function nginx_proxy_check() { /** * Checking ports. */ - $port_80_status = get_curl_info( 'localhost', 80, true ); - $port_443_status = get_curl_info( 'localhost', 443, true ); + $port_80_status = \EE\Site\Utils\get_curl_info( 'localhost', 80, true ); + $port_443_status = \EE\Site\Utils\get_curl_info( 'localhost', 443, true ); // if any/both the port/s is/are occupied. if ( ! ( $port_80_status && $port_443_status ) ) { From 5ae64d4bb107e53f19451b72176110ec1fbbdb6e Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Wed, 26 Sep 2018 12:29:08 +0530 Subject: [PATCH 2/2] Update call acc to new utility changes Signed-off-by: Riddhesh Sanghvi --- src/helper/service-utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helper/service-utils.php b/src/helper/service-utils.php index 7a41c9c..88646fb 100644 --- a/src/helper/service-utils.php +++ b/src/helper/service-utils.php @@ -16,8 +16,8 @@ function nginx_proxy_check() { /** * Checking ports. */ - $port_80_status = \EE\Site\Utils\get_curl_info( 'localhost', 80, true ); - $port_443_status = \EE\Site\Utils\get_curl_info( 'localhost', 443, true ); + $port_80_status = \EE\Utils\get_curl_info( 'localhost', 80, true ); + $port_443_status = \EE\Utils\get_curl_info( 'localhost', 443, true ); // if any/both the port/s is/are occupied. if ( ! ( $port_80_status && $port_443_status ) ) {