From a6231955aefb8739bc1ddbe49585c1f3f8df0680 Mon Sep 17 00:00:00 2001
From: Nigel Kukard <nkukard@lbsd.net>
Date: Sat, 8 Sep 2012 18:55:16 +0000
Subject: [PATCH] Better path handling when setting include dir

---
 modules/registrars/cozaepp/cozaepp.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/registrars/cozaepp/cozaepp.php b/modules/registrars/cozaepp/cozaepp.php
index 10aaf4e..5d8d496 100644
--- a/modules/registrars/cozaepp/cozaepp.php
+++ b/modules/registrars/cozaepp/cozaepp.php
@@ -787,7 +787,7 @@ function cozaepp_DeleteNameserver($params) {
 # Function to create internal COZA EPP request
 function _cozaepp_Client() {
 	# Setup include dir
-	$include_path = '../modules/registrars/cozaepp';
+	$include_path = ROOTDIR . '/modules/registrars/cozaepp';
 	set_include_path(get_include_path() . PATH_SEPARATOR . $include_path);
 	include_once 'Net/EPP/Client.php';
 	include_once 'Net/EPP/Protocol.php';
-- 
GitLab