]> git.mxchange.org Git - mailer.git/blobdiff - inc/load_extensions.php
Final fixes for surfbar reload lock
[mailer.git] / inc / load_extensions.php
index f1304aa28c4d4eef93b60abc33064d8ceb758a5d..1ca104512ee2326f03f31527a14b6ebdad63f7d1 100644 (file)
@@ -93,7 +93,7 @@ if ($cacheMode == "load") {
 
                // Load Language file
                if ($EXT_DUMMY['ext_lang'][$k] == "Y") {
-                       $INC = sprintf(PATH."inc/language/%s_%s.php", $name, GET_LANGUAGE());
+                       $INC = sprintf("%sinc/language/%s_%s.php", PATH, $name, GET_LANGUAGE());
                        if (file_exists($INC)) require_once($INC);
                }
 
@@ -180,11 +180,11 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && (($cacheMode == "init") || ($cacheMode ==
                if (empty($menu)) $menu = "N";
 
                // Load extensions
-               $file1 = sprintf(PATH."inc/extensions/ext-%s.php", $name);
+               $file1 = sprintf("%sinc/extensions/ext-%s.php", PATH, $name);
                $file2 = $file1; $EXT_CSS = "N"; $EXT_ALWAYS_ACTIVE = "N";
 
                // Special functions file
-               $file3 = sprintf(PATH."inc/libs/%s_functions.php", $name);
+               $file3 = sprintf("%sinc/libs/%s_functions.php", PATH, $name);
 
                // Does the extension file exists?
                if (file_exists($file1) && is_readable($file1))
@@ -192,7 +192,7 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && (($cacheMode == "init") || ($cacheMode ==
                        // If there's no language file specified we don't need to load one... ;-)
                        if (!empty($lang)) {
                                // Create language file
-                               $file2 = sprintf(PATH."inc/language/%s_%s.php", $lang, GET_LANGUAGE());
+                               $file2 = sprintf("%sinc/language/%s_%s.php", PATH, $lang, GET_LANGUAGE());
                        }
 
                        if (file_exists($file3) && is_readable($file3))
@@ -234,7 +234,7 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && (($cacheMode == "init") || ($cacheMode ==
 
                        if ($css == "Y")
                        {
-                               $CSS_FILE = PATH."theme/".GET_CURR_THEME()."/css/".$name.".css";
+                               $CSS_FILE = sprintf("%stheme/%s/css/%s.css", PATH, GET_CURR_THEME(), $name);
                                if (file_exists($CSS_FILE))
                                {
                                        // CSS file for extension was found (use only relative path for now!)