X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions.php;h=bb8e8eefd19dd2deb3e52f2a9e61ef14ebe3a1ee;hp=07fd2858b0eba2875b4bc0b4b7df4efbdd0d3dfe;hb=c1f17f1495b1666f02e70ad6752bdb9673fa5e1f;hpb=595124165eb35633520ee0c8e7d5196ba515c00f diff --git a/inc/extensions.php b/inc/extensions.php index 07fd2858b0..bb8e8eefd1 100644 --- a/inc/extensions.php +++ b/inc/extensions.php @@ -55,7 +55,10 @@ function LOAD_EXTENSION ($ext_name, $EXT_LOAD_MODE = "", $EXT_VER = "", $dry_run } // END - if // Construct FQFN for extension file - $extInclude = sprintf("inc/extensions/ext-%s.php", $ext_name); + $FQFN = sprintf("%sinc/extensions/ext-%s.php", + constant('PATH'), + $ext_name + ); // Is the extension file NOT there? if (!FILE_READABLE($extInclude)) { @@ -102,7 +105,7 @@ function LOAD_EXTENSION ($ext_name, $EXT_LOAD_MODE = "", $EXT_VER = "", $dry_run // Include the extension file //* DEBUG: */ DEBUG_LOG(__FUNCTION__, __LINE__, "Extension loaded."); - LOAD_INC($extInclude); + require($extInclude); // Is this extension deprecated? if ($EXT_DEPRECATED == "Y") {