mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
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
This commit is contained in:
parent
f500499530
commit
ca230a6f53
25 changed files with 83 additions and 186 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue