mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
- errors and informations boxes : management centralized in admin.php,
$errors and $infos arrays replaced by $page['errors'] and $page['infos'], special management for admin/update.php (more complex management) git-svn-id: http://piwigo.org/svn/trunk@792 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+4
-4
@@ -654,11 +654,11 @@ if (isset($_POST['submit'])
|
||||
|
||||
if (count($errors) > 0)
|
||||
{
|
||||
$template->assign_block_vars('update.errors', array());
|
||||
$template->assign_block_vars('update.update_errors', array());
|
||||
foreach ($errors as $error)
|
||||
{
|
||||
$template->assign_block_vars(
|
||||
'update.errors.error',
|
||||
'update.update_errors.update_error',
|
||||
array(
|
||||
'ELEMENT' => $error['path'],
|
||||
'LABEL' => $error['type'].' ('.$error_labels[$error['type']].')'
|
||||
@@ -669,11 +669,11 @@ if (isset($_POST['submit'])
|
||||
and isset($_POST['display_info'])
|
||||
and $_POST['display_info'] == 1)
|
||||
{
|
||||
$template->assign_block_vars('update.infos', array());
|
||||
$template->assign_block_vars('update.update_infos', array());
|
||||
foreach ($infos as $info)
|
||||
{
|
||||
$template->assign_block_vars(
|
||||
'update.infos.info',
|
||||
'update.update_infos.update_info',
|
||||
array(
|
||||
'ELEMENT' => $info['path'],
|
||||
'LABEL' => $info['info']
|
||||
|
||||
Reference in New Issue
Block a user