X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fstylesheet.php;h=d8e1514d01cc9f8f6bfe938f2f0f3c3724e7a5d9;hp=c5e0d7a80ad02ea7e1ffb17e27243eaff97ffe00;hb=7cb246c51e8634735aaf24e546bcbc46c5ce3833;hpb=a3921e6e7dac39605faa4f9194ff428c331002dc diff --git a/inc/stylesheet.php b/inc/stylesheet.php index c5e0d7a80a..d8e1514d01 100644 --- a/inc/stylesheet.php +++ b/inc/stylesheet.php @@ -42,12 +42,12 @@ if (!defined('__SECURITY')) { } // Default styles -$STYLES = array( +$stylesList = array( 'general.css', ); // Add stylesheet for installation -if ((isInstallationPhase())) $STYLES[] = 'install.css'; +if ((isInstallationPhase())) $stylesList[] = 'install.css'; // When no CSS output-mode is set, set it to file-output if (!isConfigEntrySet('css_php')) setConfigEntry('css_php', 'FILE'); @@ -55,13 +55,13 @@ if (!isConfigEntrySet('css_php')) setConfigEntry('css_php', 'FILE'); // Output CSS files or content or link to css.php ? if ((getOutputMode() == 1) || (getConfig('css_php') == 'DIRECT')) { // Load CSS files - $STYLES = merge_array($STYLES, getExtensionCssFiles()); + $stylesList = merge_array($stylesList, getExtensionCssFiles()); // Generate base path $basePath = sprintf("%stheme/%s/css/", getConfig('PATH'), getCurrentTheme()); // Output inclusion lines - foreach ($STYLES as $value) { + foreach ($stylesList as $value) { // Only include found CSS files (to reduce 404 requests) $FQFN = $basePath . $value; @@ -84,14 +84,14 @@ if ((getOutputMode() == 1) || (getConfig('css_php') == 'DIRECT')) { } // END - foreach } elseif ((getOutputMode() == '0') || (getConfig('css_php') == 'INLINE')) { // Load CSS files - $STYLES = merge_array($STYLES, getExtensionCssFiles()); + $stylesList = merge_array($stylesList, getExtensionCssFiles()); // Generate base path $basePath = sprintf("%stheme/%s/css/", getConfig('PATH'), getCurrentTheme()); // Output inclusion lines $OUT = ''; - foreach ($STYLES as $value) { + foreach ($stylesList as $value) { // Only include found CSS files (to reduce 404 requests) $FQFN = $basePath . $value;