]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-theme_edit.php
Editing of bank packages added (updating records not finished!)
[mailer.git] / inc / modules / admin / what-theme_edit.php
index f3557895ac852b753d9430adeef9cda149784464..538a432e45eb3bb81c21d02812d8e66ba5c6faad 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;
@@ -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(