Changeset 12764 for trunk/search.php


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/search.php

    r10824 r12764  
    3232
    3333//------------------------------------------------------------------ form check
    34 $errors = array();
    3534$search = array();
    3635if (isset($_POST['submit']))
     
    149148  else
    150149  {
    151     array_push($errors, l10n('Empty query. No criteria has been entered.'));
     150    array_push($page['errors'], l10n('Empty query. No criteria has been entered.'));
    152151  }
    153152}
    154153//----------------------------------------------------------------- redirection
    155 if (isset($_POST['submit']) and count($errors) == 0)
     154if (isset($_POST['submit']) and count($page['errors']) == 0)
    156155{
    157156  redirect(
     
    223222display_select_cat_wrapper($query, array(), 'category_options', false);
    224223
    225 //-------------------------------------------------------------- errors display
    226 if (sizeof($errors) != 0)
    227 {
    228   $template->assign('errors', $errors);
    229 }
    230224
    231225// include menubar
Note: See TracChangeset for help on using the changeset viewer.