]> git.mxchange.org Git - mailer.git/blobdiff - inc/load_extensions.php
Several more constants rewritten to getConfig()
[mailer.git] / inc / load_extensions.php
index 1c38a2a7e4456d8d8aa519af35714cc5a26b6ae4..52acbc9cead3db1fa104bd887c4e0a70ff04cf4d 100644 (file)
@@ -222,10 +222,10 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($GLOBALS['cache_mode'] == 'init') && (
                } // END - if
 
                // Generate FQFN for extension
-               $FQFN = sprintf("%sinc/extensions/ext-%s.php", constant('PATH'), $content['ext_name']);
+               $INC = sprintf("inc/extensions/ext-%s.php", $content['ext_name']);
 
                // Does the extension file exists?
-               if (isFileReadable($FQFN)) {
+               if (isIncludeReadable($INC)) {
                        // By default no extension is always active, except sql_patches
                        EXT_SET_ALWAYS_ACTIVE('N');
 
@@ -244,7 +244,7 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($GLOBALS['cache_mode'] == 'init') && (
                        // CSS file handling:
                        if ((!isset($content['ext_css'])) || ($content['ext_css'] == 'Y')) {
                                // Create FQFN for the CSS file
-                               $FQFN = sprintf("%stheme/%s/css/%s.css", constant('PATH'), getCurrentTheme(), $content['ext_name']);
+                               $FQFN = sprintf("%stheme/%s/css/%s.css", getConfig('PATH'), getCurrentTheme(), $content['ext_name']);
 
                                // Is the file there?
                                if (isFileReadable($FQFN)) {