X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Ftheme_functions.php;h=766ca009a9a5db752191a7208ab8497a56535109;hp=cd6d4ce3a2ce49e4c7f971c0cda33c09b469e418;hb=f26aab4a55972825a0d3ef9346c8c8dea8752b7b;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594 diff --git a/inc/libs/theme_functions.php b/inc/libs/theme_functions.php index cd6d4ce3a2..766ca009a9 100644 --- a/inc/libs/theme_functions.php +++ b/inc/libs/theme_functions.php @@ -212,8 +212,8 @@ if ((REQUEST_ISSET_POST(('new_theme'))) && (REQUEST_POST('new_theme') != $GLOBAL // Remove current from array and set new $theme = sprintf("%stheme/%s/theme.php", constant('PATH'), $GLOBALS['curr_theme']); - unset($INC_POOL[array_search($theme, $INC_POOL)]); - $INC_POOL[] = sprintf("%stheme/%s/theme.php", constant('PATH'), $newTheme); + REMOVE_INC_FROM_POOL($theme); + ADD_INC_TO_POOL(sprintf("%stheme/%s/theme.php", constant('PATH'), $newTheme)); } // END - if //