Masking for more file names added
[mailer.git] / inc / load_extensions.php
index f1304aa..ed0a69b 100644 (file)
@@ -180,7 +180,7 @@ 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
@@ -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!)