aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'profile.php')
-rw-r--r--profile.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/profile.php b/profile.php
index b678a8709..7d00eaa2a 100644
--- a/profile.php
+++ b/profile.php
@@ -257,15 +257,8 @@ function load_profile_in_template($url_action, $url_redirect, $userdata)
'F_ACTION'=>$url_action,
));
- foreach (get_pwg_themes() as $pwg_theme)
- {
- if (isset($_POST['submit']) or $userdata['theme'] == $pwg_theme)
- {
- $template->assign('template_selection', $pwg_theme);
- }
- $template_options[$pwg_theme] = $pwg_theme;
- }
- $template->assign('template_options', $template_options);
+ $template->assign('template_selection', $userdata['theme']);
+ $template->assign('template_options', get_pwg_themes());
foreach (get_languages() as $language_code => $language_name)
{