X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Ftheme_functions.php;h=2fb7de3b7f8a9b8d1a36c7c8bd45c2767fed3609;hp=9d97d505c302a67c1daaf87fe5d906d79f121f1f;hb=4b32c7be676d4a191c869a5745f2890240852fb0;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa diff --git a/inc/libs/theme_functions.php b/inc/libs/theme_functions.php index 9d97d505c3..2fb7de3b7f 100644 --- a/inc/libs/theme_functions.php +++ b/inc/libs/theme_functions.php @@ -40,7 +40,7 @@ // Some security stuff... if (!defined('__SECURITY')) { die(); -} +} // END - if // Create a selection box with installed and activated themes or all if admin function generateThemeSelectionBox () { @@ -49,9 +49,9 @@ function generateThemeSelectionBox () { $mod = getModule(); // Construction URL - $formAction = "{%url=modules.php?module=" . $mod; - if (!empty($what)) $formAction .= "&what=" . $what; - $formAction = '%}'; + $formAction = '{%url=modules.php?module='. $mod; + if (!empty($what)) $formAction .= '&what=' . $what; + $formAction .= '%}'; // Initialize array $themesArray = array( @@ -320,6 +320,9 @@ function FILTER_HANDLE_THEME_CHANGE () { // Add new theme addIncludeToPool('theme', sprintf("theme/%s/theme.php", $newTheme)); + + // Redirect to same URL + redirectToRequestUri(); } // END - if }