aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-17 00:48:38 +0000
committerplegall <plg@piwigo.org>2010-03-17 00:48:38 +0000
commitf82430dd3b92a2e37a58108fa81cd0bc6255fb00 (patch)
treedb0e7d249e591f0187ade853d8cf517a011f3fe1 /profile.php
parent54148c8d6039695456cec9cdf3e912810e8105db (diff)
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
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)
{