handling of boolean constants improved (not fully)
[mailer.git] / inc / stylesheet.php
index 9c3a67dd9e3714007f1c9f9b11b7c2de4ef01385..a341fd599f49262318f0e6db42d1d79a6d5f2455 100644 (file)
@@ -44,7 +44,7 @@ $STYLES = array(
 );
 
 // Add stylesheet for installation
-if ((basename($_SERVER['PHP_SELF']) == "install.php") || (!mxchange_installed) || (isset($_GET['installing']))) $STYLES[] = "install.css";
+if ((basename($_SERVER['PHP_SELF']) == "install.php") || (!isBooleanConstantAndTrue('mxchange_installed')) || (isset($_GET['installing']))) $STYLES[] = "install.css";
 
 // When no CSS output-mode is set, set it to file-output
 if (empty($_CONFIG['css_php'])) $_CONFIG['css_php'] = "FILE";
@@ -94,7 +94,7 @@ if (($CSS == "1") || ($_CONFIG['css_php'] == "DIRECT"))
 {
        // Now we load all CSS files from css.php!
        OUTPUT_HTML("<LINK rel=\"stylesheet\" type=\"text/css\" href=\"".URL."/css.php", false);
-       if (mxchange_installing)
+       if (isBooleanConstantAndTrue('mxchange_installing'))
        {
                // Default theme first
                $NEW_THEME = "default";