]> git.mxchange.org Git - mailer.git/blobdiff - inc/config-functions.php
A lot CSS classes rewritten, please update all your themes.
[mailer.git] / inc / config-functions.php
index b81e1633ae18f45a6f4b600e12543366767a51f7..e86c97ac6eb3c7ca6c98a2bcbc8f830681a4f0d6 100644 (file)
@@ -79,7 +79,7 @@ function getConfig ($configEntry) {
        // Is the entry there?
        if (!isConfigEntrySet($configEntry)) {
                // Raise an error of missing entries
-               debug_report_bug(__FUNCTION__, __LINE__, sprintf("Configuration entry <em>%s</em> is missing.", $configEntry));
+               debug_report_bug(__FUNCTION__, __LINE__, sprintf("Configuration entry <span class=\"data\">%s</span> is missing.", $configEntry));
        } // END - if
 
        // Return it
@@ -154,7 +154,7 @@ function updateOldConfigFile () {
                '_TABLE_TYPE'        => '_TABLE_TYPE',
                '_DB_TYPE'           => '_DB_TYPE',
                'SMTP_HOSTNAME'      => 'SMTP_HOSTNAME',
-               'SMTP_USER'           => 'SMTP_USER',
+               'SMTP_USER'          => 'SMTP_USER',
                'SMTP_PASSWORD'      => 'SMTP_PASSWORD',
                'ENABLE_BACKLINK'    => 'ENABLE_BACKLINK',
                'MAIN_TITLE'         => 'MAIN_TITLE',
@@ -243,7 +243,7 @@ function updateOldConfigFile () {
                $line = trim($line);
 
                // Is the $MySQL found?
-               if (substr($line, 0, 6) == "\$MySQL") {
+               if (substr($line, 0, 6) == '$MySQL') {
                        // Okay found!
                        $found = true;
                } elseif ($found === true) {
@@ -278,7 +278,7 @@ function updateOldConfigFile () {
 // Update config entries
 function updateConfiguration ($entries, $values, $updateMode='', $config = '0') {
        // Do not update config in CSS mode
-       if ((getOutputMode() == 1) || (getOutputMode() == -1) || (isInstallationPhase())) {
+       if ((isCssOutputMode()) || (isRawOutputMode()) || (isInstallationPhase())) {
                return;
        } // END - if
 
@@ -344,10 +344,10 @@ function updateConfiguration ($entries, $values, $updateMode='', $config = '0')
        }
 
        // Run database update
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "entries={$entries}");
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'entries=' . $entries);
        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_config` SET ".$entries." WHERE `config`=%s LIMIT 1",
                        array(bigintval($config)), __FUNCTION__, __LINE__);
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, "entries={$entries},affectedRows={$affectedRows}<br />");
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'entries=' . $entries . ',affectedRows=' . SQL_AFFECTEDROWS());
 
        // Rebuild cache
        rebuildCache('config', 'config');