X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fstylesheet.php;h=392ea5a4a5d5ac275cee46c60ca6b87efd5e9926;hp=cd64492f18d13a9fd80b9c12b19e1faa74d39e96;hb=2f312726826db5c4c3363926c743fea3c1c23b34;hpb=c2e17d983fcbc0c3bd1dd37908d87c678f0367df
diff --git a/inc/stylesheet.php b/inc/stylesheet.php
index cd64492f18..392ea5a4a5 100644
--- a/inc/stylesheet.php
+++ b/inc/stylesheet.php
@@ -1,7 +1,7 @@
0)) {
switch (getConfig('css_php')) {
case 'DIRECT': // Just link them (unsupported)
- outputHtml('');
+ outputHtml('');
break;
case 'FILE': // Output contents
@@ -82,16 +82,16 @@ if ((getOutputMode() == 1) || (getConfig('css_php') == 'DIRECT')) {
} // END - switch
} // END - if
} // END - foreach
-} elseif ((getOutputMode() == 0) || (getConfig('css_php') == 'INLINE')) {
+} 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;
@@ -106,20 +106,20 @@ if ((getOutputMode() == 1) || (getConfig('css_php') == 'DIRECT')) {
loadTemplate('css_inline', false, $OUT);
} else {
// Now we load all CSS files from css.php!
- outputHtml('');
+ outputHtml($OUT . '%}" />');
}
// [EOF]