]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/theme_functions.php
Failed SQL queries are now also reported in bug mails, SQL queries improved (more...
[mailer.git] / inc / libs / theme_functions.php
index 9d97d505c302a67c1daaf87fe5d906d79f121f1f..2fb7de3b7f8a9b8d1a36c7c8bd45c2767fed3609 100644 (file)
@@ -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
 }