aboutsummaryrefslogtreecommitdiffstats
path: root/profile.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2011-12-18 21:46:24 +0000
committermistic100 <mistic@piwigo.org>2011-12-18 21:46:24 +0000
commitca230a6f53e3a102faf5cb3633465ee8fc326663 (patch)
tree9613ef04023af2927ed452c370af4814fb866fc5 /profile.php
parentf5004995306cb603d63724c98af2d657c3c4a64b (diff)
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
Diffstat (limited to '')
-rw-r--r--profile.php9
1 files changed, 1 insertions, 8 deletions
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');