Changeset 12764 for trunk/nbm.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/nbm.php

    r10824 r12764  
    3838
    3939
    40 
    4140// +-----------------------------------------------------------------------+
    4241// | Main                                                                  |
    4342// +-----------------------------------------------------------------------+
    44 $page['errors'] = array();
    45 $page['infos'] = array();
    46 
    4743if (isset($_GET['subscribe'])
    4844    and preg_match('/^[A-Za-z0-9]{16}$/', $_GET['subscribe']))
     
    6965$template->set_filenames(array('nbm'=>'nbm.tpl'));
    7066
    71 // +-----------------------------------------------------------------------+
    72 // | errors & infos                                                        |
    73 // +-----------------------------------------------------------------------+
    74 $template->assign(
    75     array(
    76       'errors' => $page['errors'],
    77       'infos' => $page['infos'],
    78     )
    79   );
    80  
     67
    8168// include menubar
    8269$themeconf = $template->get_template_vars('themeconf');
Note: See TracChangeset for help on using the changeset viewer.