]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions.php
Several more constants rewritten to getConfig()
[mailer.git] / inc / extensions.php
index d50ff70309cc548f33af484e9ec440e376a2e3bd..149750d9d9d1b8c7d9efd1c5ba59851bf6b08570 100644 (file)
@@ -68,7 +68,7 @@ function LOAD_EXTENSION ($ext_name, $EXT_LOAD_MODE = '', $EXT_VER = '', $dry_run
 
        // Construct include filename and FQFN for extension file
        $INC = sprintf("inc/extensions/ext-%s.php", $ext_name);
 
        // Construct include filename and FQFN for extension file
        $INC = sprintf("inc/extensions/ext-%s.php", $ext_name);
-       $FQFN = constant('PATH') . $INC;
+       $FQFN = getConfig('PATH') . $INC;
 
        // Is the extension file NOT there?
        if (!isIncludeReadable($INC)) {
 
        // Is the extension file NOT there?
        if (!isIncludeReadable($INC)) {
@@ -593,8 +593,8 @@ function EXTENSION_UPDATE ($ext_name, $ext_ver, $dry_run = false) {
                        CREATE_EXTENSION_UPDATE_TASK(getCurrentAdminId(), EXT_GET_CURR_NAME(), $GLOBALS['cache_array']['update_ver'][EXT_GET_CURR_NAME()], SQL_ESCAPE(EXT_GET_NOTES(EXT_GET_NOTES())));
 
                        // Update extension's version
                        CREATE_EXTENSION_UPDATE_TASK(getCurrentAdminId(), EXT_GET_CURR_NAME(), $GLOBALS['cache_array']['update_ver'][EXT_GET_CURR_NAME()], SQL_ESCAPE(EXT_GET_NOTES(EXT_GET_NOTES())));
 
                        // Update extension's version
-                       SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_extensions` SET ext_version='%s' WHERE `ext_name`='%s' LIMIT 1",
-                       array($GLOBALS['cache_array']['update_ver'][EXT_GET_CURR_NAME()], EXT_GET_CURR_NAME()), __FUNCTION__, __LINE__);
+                       SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_extensions` SET `ext_version`='%s' WHERE `ext_name`='%s' LIMIT 1",
+                               array($GLOBALS['cache_array']['update_ver'][EXT_GET_CURR_NAME()], EXT_GET_CURR_NAME()), __FUNCTION__, __LINE__);
 
                        // Remove arrays
                        UNSET_SQLS();
 
                        // Remove arrays
                        UNSET_SQLS();
@@ -786,7 +786,7 @@ function CREATE_NEW_EXTENSION_TASK ($admin_id, $subject, $ext) {
 
                // Template file
                $tpl = sprintf("%stemplates/%s/html/ext/ext_%s.tpl",
 
                // Template file
                $tpl = sprintf("%stemplates/%s/html/ext/ext_%s.tpl",
-                       constant('PATH'),
+                       getConfig('PATH'),
                        getLanguage(),
                        $ext
                );
                        getLanguage(),
                        $ext
                );