]> git.mxchange.org Git - mailer.git/blobdiff - inc/header.php
Fixed a typo, thanks to profi-concept. Function INCLUDE_READABLE() introduced
[mailer.git] / inc / header.php
index 6c85f0bfaf70fb095a381cc5dabc69d53aa65c4a..5d32484a7ae6fc39a8d5547c85dbabf69586b327 100644 (file)
@@ -62,7 +62,7 @@ if (($header != "1") && ($header != "2")) {
                                } // END - if
 
                                // Add main title
-                               $TITLE .= MAIN_TITLE;
+                               $TITLE .= constant('MAIN_TITLE');
 
                                // Add title of module? (middle decoration will also be added!)
                                if ((getConfig('enable_mod_title') == "Y") || ((empty($GLOBALS['what'])) && (empty($GLOBALS['action']))) || ($GLOBALS['module'] == "admin")) $TITLE .= " ".trim(getConfig('title_middle'))." ".ADD_MODULE_TITLE($GLOBALS['module']);
@@ -80,10 +80,10 @@ if (($header != "1") && ($header != "2")) {
                                define('__PAGE_TITLE', html_entity_decode($TITLE));
                        } 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,
+                               $FQFN = sprintf("inc/language/install_%s.php",
                                        GET_LANGUAGE()
-                               ));
+                               );
+                               LOAD_INC_ONCE($FQFN);
 
                                // Installation mode
                                define('__PAGE_TITLE', getMessage('INSTALLATION_OF_MXCHANGE'));
@@ -118,7 +118,7 @@ if (($header != "1") && ($header != "2")) {
                LOAD_TEMPLATE("header");
 
                // Include stylesheet
-               require_once(PATH."inc/stylesheet.php");
+               LOAD_INC_ONCE("inc/stylesheet.php");
        } // END - if
 
        // Closing HEAD tag