]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-connect.php
Use compileRawCode() for loading email templates
[mailer.git] / inc / mysql-connect.php
index a733ea9abd2440a6c38aa14c0f974e3fcc7b151d..aa7df75574a5dc4d8808687d9c10f676b7e8a10e 100644 (file)
@@ -59,8 +59,11 @@ initErrorHandler();
 // Init request
 initRequest();
 
+// Init userid
+initMemberId();
+
 // Set important header_sent
-if (!isset($GLOBALS['header_sent'])) $GLOBALS['header_sent'] = 0;
+if (!isset($GLOBALS['header_sent'])) $GLOBALS['header_sent'] = '0';
 
 // Init fatal messages
 initFatalMessages();
@@ -144,9 +147,6 @@ if (!isInstalling()) {
                setConfigEntry('OUTPUT_MODE', 'render');
        } // END - if
 
-       // Set other missing variables
-       if (!isOutputModeSet()) setOutputMode(0);
-
        // Include more
        foreach (array('inc/databases.php','inc/versions.php','inc/db/lib.php','inc/session.php','inc/install-functions.php','inc/load_config.php') as $inc) {
                // Load the include