From ca230a6f53e3a102faf5cb3633465ee8fc326663 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sun, 18 Dec 2011 21:46:24 +0000 Subject: feature:2538 Make a unified messages management use only $page['infos'] and $page['errors'] vars and and necessary template to all main pages git-svn-id: http://piwigo.org/svn/trunk@12764 68402e56-0260-453c-a942-63ccdbb3a9ee --- profile.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'profile.php') diff --git a/profile.php b/profile.php index 779e4ea81..ab1bcf677 100644 --- a/profile.php +++ b/profile.php @@ -64,7 +64,7 @@ SELECT '.implode(',', $fields).' $userdata = array_merge($userdata, $default_user); } - save_profile_from_post($userdata, $errors); + save_profile_from_post($userdata, $page['errors']); $title= l10n('Your Gallery Customization'); $page['body_id'] = 'theProfilePage'; @@ -75,13 +75,6 @@ SELECT '.implode(',', $fields).' make_index_url(), // for redirect $userdata ); - // +-----------------------------------------------------------------------+ - // | errors display | - // +-----------------------------------------------------------------------+ - if (count($errors) != 0) - { - $template->assign('errors', $errors); - } // include menubar $themeconf = $template->get_template_vars('themeconf'); -- cgit v1.2.3