// And save all data in array
LOAD_INC($INC);
$themesArray['theme_unix'][] = $content['theme_path'];
- $themesArray['theme_name'][] = $THEME_NAME;
+ $themesArray['theme_name'][] = $GLOBALS['theme_data']['name'];
} // END - if
} // END - while
// 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
//