Changeset 15578 for trunk


Ignore:
Timestamp:
Jun 6, 2012, 10:29:30 PM (12 years ago)
Author:
mistic100
Message:

feature:2538 little rework of messages system, now can be used on 'loc_end_index' and 'loc_end_picture'

Location:
trunk
Files:
1 added
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/about.php

    r12922 r15578  
    5858
    5959include(PHPWG_ROOT_PATH.'include/page_header.php');
     60include(PHPWG_ROOT_PATH.'include/page_messages.php');
    6061$template->pparse('about');
    6162include(PHPWG_ROOT_PATH.'include/page_tail.php');
  • trunk/comments.php

    r13865 r15578  
    550550// +-----------------------------------------------------------------------+
    551551include(PHPWG_ROOT_PATH.'include/page_header.php');
     552include(PHPWG_ROOT_PATH.'include/page_messages.php');
    552553$template->pparse('comments');
    553554include(PHPWG_ROOT_PATH.'include/page_tail.php');
  • trunk/identification.php

    r12878 r15578  
    108108//----------------------------------------------------------- html code display
    109109include(PHPWG_ROOT_PATH.'include/page_header.php');
     110include(PHPWG_ROOT_PATH.'include/page_messages.php');
    110111$template->pparse('identification');
    111112include(PHPWG_ROOT_PATH.'include/page_tail.php');
  • trunk/include/page_header.php

    r14168 r15578  
    100100      ));
    101101}
    102 else
    103 {// messages only if no redirection
    104   foreach (array('errors','infos') as $mode)
    105   {
    106     if (isset($_SESSION['page_'.$mode]))
    107     {
    108       $page[$mode] = array_merge($page[$mode], $_SESSION['page_'.$mode]);
    109       unset($_SESSION['page_'.$mode]);
    110     }
    111102
    112     if (count($page[$mode]) != 0)
    113     {
    114       $template->assign($mode, $page[$mode]);
    115     }
    116   }
    117 }
    118103trigger_action('loc_end_page_header');
    119104
  • trunk/index.php

    r13872 r15578  
    342342include(PHPWG_ROOT_PATH.'include/page_header.php');
    343343trigger_action('loc_end_index');
     344include(PHPWG_ROOT_PATH.'include/page_messages.php');
    344345$template->pparse('index');
    345346//------------------------------------------------------------ log informations
  • trunk/nbm.php

    r12922 r15578  
    7777// +-----------------------------------------------------------------------+
    7878include(PHPWG_ROOT_PATH.'include/page_header.php');
     79include(PHPWG_ROOT_PATH.'include/page_messages.php');
    7980$template->parse('nbm');
    8081include(PHPWG_ROOT_PATH.'include/page_tail.php');
  • trunk/notification.php

    r13240 r15578  
    113113// +-----------------------------------------------------------------------+
    114114include(PHPWG_ROOT_PATH.'include/page_header.php');
     115include(PHPWG_ROOT_PATH.'include/page_messages.php');
    115116$template->pparse('notification');
    116117include(PHPWG_ROOT_PATH.'include/page_tail.php');
  • trunk/password.php

    r12922 r15578  
    355355
    356356include(PHPWG_ROOT_PATH.'include/page_header.php');
     357include(PHPWG_ROOT_PATH.'include/page_messages.php');
    357358$template->pparse('password');
    358359include(PHPWG_ROOT_PATH.'include/page_tail.php');
  • trunk/picture.php

    r15299 r15578  
    981981include(PHPWG_ROOT_PATH.'include/page_header.php');
    982982trigger_action('loc_end_picture');
     983include(PHPWG_ROOT_PATH.'include/page_messages.php');
    983984if ($page['slideshow'] and $conf['light_slideshow'])
    984985{
  • trunk/profile.php

    r12922 r15578  
    8686  include(PHPWG_ROOT_PATH.'include/page_header.php');
    8787  trigger_action('loc_end_profile');
     88  include(PHPWG_ROOT_PATH.'include/page_messages.php');
    8889  $template->pparse('profile');
    8990  include(PHPWG_ROOT_PATH.'include/page_tail.php');
  • trunk/register.php

    r12922 r15578  
    129129
    130130include(PHPWG_ROOT_PATH.'include/page_header.php');
     131include(PHPWG_ROOT_PATH.'include/page_messages.php');
    131132$template->parse('register');
    132133include(PHPWG_ROOT_PATH.'include/page_tail.php');
  • trunk/search.php

    r12922 r15578  
    232232//------------------------------------------------------------ html code display
    233233include(PHPWG_ROOT_PATH.'include/page_header.php');
     234include(PHPWG_ROOT_PATH.'include/page_messages.php');
    234235$template->pparse('search');
    235236include(PHPWG_ROOT_PATH.'include/page_tail.php');
  • trunk/tags.php

    r12922 r15578  
    203203
    204204include(PHPWG_ROOT_PATH.'include/page_header.php');
     205include(PHPWG_ROOT_PATH.'include/page_messages.php');
    205206$template->pparse('tags');
    206207include(PHPWG_ROOT_PATH.'include/page_tail.php');
Note: See TracChangeset for help on using the changeset viewer.