Commit d6108b36 authored by Scott's avatar Scott
Browse files

Prevents EPP classes from being redeclared when running a copy of the


module, under it's new name, alongside v0.1.0

Signed-off-by: Scott's avatarScott Barr <scott@barr.co.za>
parent 81e8ff51
......@@ -1401,8 +1401,10 @@ function _zacr_Client($domain=null) {
$include_path = ROOTDIR . '/modules/registrars/zacr';
set_include_path($include_path . PATH_SEPARATOR . get_include_path());
# Include EPP stuff we need
require_once 'Net/EPP/Client.php';
require_once 'Net/EPP/Protocol.php';
if (!class_exists('Net_EPP_Client')) {
require_once 'Net/EPP/Client.php';
require_once 'Net/EPP/Protocol.php';
}
# Grab module parameters
$params = getregistrarconfigoptions('zacr');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment