From 14778ce673277f2df41f963aa70df1cbed427294 Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 13 Mar 2010 00:00:52 +0000 Subject: 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 --- profile.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'profile.php') 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); -- cgit v1.2.3