]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-theme_edit.php
ADMIN_MEMBER_SELECTION_BOX() does now return a select-tag with the member list
[mailer.git] / inc / modules / admin / what-theme_edit.php
index f3557895ac852b753d9430adeef9cda149784464..4c8efdaf4c47a313464a0dafd0803b86f12bfcc6 100644 (file)
@@ -40,7 +40,7 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) {
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));
 
-global $CurrTheme;
+global $currTheme;
 
 // Check for selected themes
 $SEL = 0;
@@ -52,7 +52,7 @@ if ($SEL > 0) {
                // Shall I de-/activate or delete themes?
                if (isset($_POST['status'])) {
                        // Change status
-                       if ($_POST['active'][$id] == 'Y') {
+                       if ($_POST['active'][$id] == "Y") {
                                $SQL = "UPDATE "._MYSQL_PREFIX."_themes SET theme_active='N' WHERE id='".$id."' LIMIT 1";
                        } else {
                                $SQL = "UPDATE "._MYSQL_PREFIX."_themes SET theme_active='Y' WHERE id='".$id."' LIMIT 1";
@@ -77,6 +77,10 @@ if ($SEL > 0) {
        // Set session
        set_session("mxchange_theme", $POST['default_theme']);
 
+       // Set it in config and current theme as well
+       $currTheme = $POST['default_theme'];
+       $_CONFIG['default_theme'] = $POST['default_theme'];
+
        // Save theme
        ADMIN_SAVE_SETTINGS($POST);
 }
@@ -96,7 +100,7 @@ if (SQL_NUMROWS($result) > 0)
 
                // Is the loaded theme name != current theme name?
                $LINK = $unix;
-               if ($unix != $CurrTheme) $LINK = "<A href=\"".URL."/modules.php?module=admin&amp;what=theme_edit&amp;default_theme=".$unix."\" title=\"".ADMIN_SET_AS_NEW_THEME."\">".$unix."</A>";
+               if ($unix != $currTheme) $LINK = "<A href=\"".URL."/modules.php?module=admin&amp;what=theme_edit&amp;default_theme=".$unix."\" title=\"".ADMIN_SET_AS_NEW_THEME."\">".$unix."</A>";
 
                // Prepare data for the row template
                $content = array(