From f82430dd3b92a2e37a58108fa81cd0bc6255fb00 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 17 Mar 2010 00:48:38 +0000 Subject: feature 1514: new screen to manage installed themes; activate, deactivate, delete, set as default. plugins.class.php was merged back to a state it doesn't manage themes at all. themes.class.php was created instead, from a duplication of plugins.class.php and strongly modified then. feature 1507: the display of available themes is now much more "graphic". git-svn-id: http://piwigo.org/svn/trunk@5153 68402e56-0260-453c-a942-63ccdbb3a9ee --- profile.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'profile.php') 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) { -- cgit v1.2.3