Ignore:
Timestamp:
Dec 18, 2011, 10:46:24 PM (12 years ago)
Author:
mistic100
Message:

feature:2538 Make a unified messages management
use only $pageinfos and $pageerrors vars and and necessary template to all main pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/identification.php

    r11989 r12764  
    3232
    3333//-------------------------------------------------------------- identification
    34 $errors = array();
    35 
    3634$redirect_to = '';
    3735if ( !empty($_GET['redirect']) )
     
    4038  if ( is_a_guest() )
    4139  {
    42     array_push($errors, l10n('You are not authorized to access the requested page'));
     40    array_push($page['errors'], l10n('You are not authorized to access the requested page'));
    4341  }
    4442}
     
    4947  {
    5048    array_push(
    51       $errors,
     49      $page['errors'],
    5250      l10n('Cookies are blocked or not supported by your browser. You must enable cookies to connect.')
    5351      );
     
    6967    else
    7068    {
    71       array_push( $errors, l10n('Invalid password!') );
     69      array_push($page['errors'], l10n('Invalid password!') );
    7270    }
    7371  }
     
    9795}
    9896
    99 //-------------------------------------------------------------- errors display
    100 if ( sizeof( $errors ) != 0 )
    101 {
    102   $template->assign('errors', $errors);
    103 }
    104 
    10597// include menubar
    10698$themeconf = $template->get_template_vars('themeconf');
Note: See TracChangeset for help on using the changeset viewer.