diff options
author | plegall <plg@piwigo.org> | 2010-03-13 00:00:52 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-03-13 00:00:52 +0000 |
commit | 14778ce673277f2df41f963aa70df1cbed427294 (patch) | |
tree | 8c723d4d9827876dbf19d2bd581405fc50910860 /profile.php | |
parent | c396f08708d431c6f7e8656eaca4fd8e440fdd39 (diff) |
feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It
supports multiple level inheritance.
git-svn-id: http://piwigo.org/svn/trunk@5123 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | profile.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/profile.php b/profile.php index 489b0bd90..b678a8709 100644 --- a/profile.php +++ b/profile.php @@ -202,7 +202,7 @@ function save_profile_from_post($userdata, &$errors) // update user "additional" informations (specific to Piwigo) $fields = array( 'nb_image_line', 'nb_line_page', 'language', 'maxwidth', 'maxheight', - 'expand', 'show_nb_comments', 'show_nb_hits', 'recent_period', 'template' + 'expand', 'show_nb_comments', 'show_nb_hits', 'recent_period', 'theme' ); $data = array(); @@ -257,14 +257,13 @@ function load_profile_in_template($url_action, $url_redirect, $userdata) 'F_ACTION'=>$url_action, )); - foreach (get_pwg_themes() as $pwg_template) + foreach (get_pwg_themes() as $pwg_theme) { - if (isset($_POST['submit']) - or $userdata['template'].'/'.$userdata['theme'] == $pwg_template) + if (isset($_POST['submit']) or $userdata['theme'] == $pwg_theme) { - $template->assign('template_selection', $pwg_template); + $template->assign('template_selection', $pwg_theme); } - $template_options[$pwg_template] = $pwg_template; + $template_options[$pwg_theme] = $pwg_theme; } $template->assign('template_options', $template_options); |