From a6f2207cfc7ea047d53a4da7c6b218fae66c1801 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 10 Jun 2011 22:18:32 +0000 Subject: [PATCH] mailer for session entries. :) --- inc/libs/bonus_functions.php | 6 ++++-- inc/libs/theme_functions.php | 10 +++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/inc/libs/bonus_functions.php b/inc/libs/bonus_functions.php index 0ef95848f6..db0a942de5 100644 --- a/inc/libs/bonus_functions.php +++ b/inc/libs/bonus_functions.php @@ -40,10 +40,12 @@ if (!defined('__SECURITY')) { die(); } // END - if -// This function must be run *BEFORE* a link is removed from table 'mxchange_user_links' ! +// This function must be run *BEFORE* a link is removed from table 'mailer_user_links' ! function addTurboBonus ($mid, $userid, $type) { // Shall we add bonus points? - if (!isBonusRallyeActive()) return false; + if (!isBonusRallyeActive()) { + return false; + } // END - if // Init variables $sql = ''; $bonus = '0'; $mail = '0'; $column = ''; diff --git a/inc/libs/theme_functions.php b/inc/libs/theme_functions.php index 6ee3384fd7..976d45acc5 100644 --- a/inc/libs/theme_functions.php +++ b/inc/libs/theme_functions.php @@ -227,13 +227,13 @@ function getActualTheme () { // Load default theme if not empty from configuration if ((isConfigEntrySet('default_theme')) && (getConfig('default_theme') != '')) $ret = getConfig('default_theme'); - if (!isSessionVariableSet('mxchange_theme')) { + if (!isSessionVariableSet('mailer_theme')) { // Set default theme setTheme($ret); - } elseif ((isSessionVariableSet('mxchange_theme')) && (isExtensionInstalledAndNewer('sql_patches', '0.1.4'))) { + } elseif ((isSessionVariableSet('mailer_theme')) && (isExtensionInstalledAndNewer('sql_patches', '0.1.4'))) { //die("
".print_r($GLOBALS['cache_array']['themes'], true)."
"); // Get theme from cookie - $ret = getSession('mxchange_theme'); + $ret = getSession('mailer_theme'); // Is it valid? if ((!isExtensionActive('theme')) || (getThemeId($ret) == '0')) { @@ -254,7 +254,7 @@ function getActualTheme () { } // Set return value - $ret = getSession('mxchange_theme'); + $ret = getSession('mailer_theme'); } else { // Invalid design, reset cookie setTheme($ret); @@ -269,7 +269,7 @@ function getActualTheme () { * setSession() which is required e.g. for destroySponsorSession(). */ function setTheme ($newTheme) { - return setSession('mxchange_theme', $newTheme); + return setSession('mailer_theme', $newTheme); } // Get id from theme -- 2.39.5