Variable naming convention applied, previous fix fixed ;)
[mailer.git] / inc / theme-manager.php
index 3eeee63dde45d33663d1891998663790ce9ef93d..a0145518ab90056ad03fc9f8b375763fadc40423 100644 (file)
@@ -97,7 +97,7 @@ function GET_CURR_THEME() {
 function THEME_SELECTION_BOX($mod, $act, $wht, $result)
 {
        // Construction URL
-       global $CurrTheme;
+       global $currTheme;
        $FORM = URL."/modules.php?module=".$mod;
        if (!empty($act)) $FORM .= "&action=".$act;
        if (!empty($wht))   $FORM .= "&what=".$wht;
@@ -131,7 +131,7 @@ function THEME_SELECTION_BOX($mod, $act, $wht, $result)
        foreach ($THEMES['theme_unix'] as $key=>$theme)
        {
                $OUT .= "  <OPTION value=\"".$theme."\"";
-               if ($theme == $CurrTheme) $OUT .= " selected=\"selected\"";
+               if ($theme == $currTheme) $OUT .= " selected=\"selected\"";
                $OUT .= ">".$THEMES['theme_name'][$key]."</OPTION>\n";
        }
 
@@ -142,11 +142,11 @@ function THEME_SELECTION_BOX($mod, $act, $wht, $result)
 }
 
 // Initialize variables
-$CurrTheme = GET_CURR_THEME();
+$currTheme = GET_CURR_THEME();
 if (empty($_POST['new_theme'])) $_POST['new_theme'] = "";
 
 // Check if new theme is selcted
-if ((!empty($_POST['new_theme'])) && ($_POST['new_theme'] != $CurrTheme))
+if ((!empty($_POST['new_theme'])) && ($_POST['new_theme'] != $currTheme))
 {
        // Set new theme for guests
        $NewTheme = $_POST['new_theme'];
@@ -155,7 +155,7 @@ if ((!empty($_POST['new_theme'])) && ($_POST['new_theme'] != $CurrTheme))
        set_session("mxchange_theme", $NewTheme);
 
        // Remove current from array and set new
-       $theme = PATH."theme/".$CurrTheme."/theme.php";
+       $theme = PATH."theme/".$currTheme."/theme.php";
        unset($INC_POOL[array_search($theme, $INC_POOL)]);
        $INC_POOL[] = PATH."theme/".$NewTheme."/theme.php";
 }