]> git.mxchange.org Git - mailer.git/blobdiff - inc/header.php
handling of boolean constants improved (not fully)
[mailer.git] / inc / header.php
index dee383f81f02d002d3444f3ea09a2238bfabef7e..20500100af20751f4e6d4f6cacb22be1a6c2b721 100644 (file)
@@ -68,7 +68,7 @@ if (($header != "1") && ($header != "2")) {
 
                                // Remember title in constant for the template
                                define('__PAGE_TITLE', html_entity_decode($TITLE));
-                       } elseif ((!mxchange_installed) || (!admin_registered)) {
+                       } elseif ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndTrue('admin_registered'))) {
                                // Load language file because it was missing in installation finalizer step... *sigh*
                                require_once(sprintf("%sinc/language/install_%s.php",
                                        PATH,
@@ -94,7 +94,7 @@ if (($header != "1") && ($header != "2")) {
                LOAD_TEMPLATE("metadata");
 
                // Add meta description to header
-               if ((mxchange_installed) && (admin_registered) && ($GLOBALS['module'] != "admin") && ($GLOBALS['module'] != "login") && (isset($db)) && (isset($link))) {
+               if ((isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered')) && ($GLOBALS['module'] != "admin") && ($GLOBALS['module'] != "login") && (isset($db)) && (isset($link))) {
                        // Add meta description not in admin and login module and when the script is installed
                        META_DESCRIPTION($GLOBALS['module'], $GLOBALS['what']);
                }