Changeset 18463
- Timestamp:
- Oct 4, 2012, 6:03:25 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin.php
r17009 r18463 155 155 { 156 156 $page['page'] = 'intro'; 157 }158 159 $page['errors'] = array();160 $page['infos'] = array();161 $page['warnings'] = array();162 163 if (isset($_SESSION['page_infos']))164 {165 $page['infos'] = array_merge($page['infos'], $_SESSION['page_infos']);166 unset($_SESSION['page_infos']);167 157 } 168 158 … … 291 281 include(PHPWG_ROOT_PATH.'admin/'.$page['page'].'.php'); 292 282 293 // +-----------------------------------------------------------------------+294 // | Errors, Infos & Warnings |295 // +-----------------------------------------------------------------------+296 297 283 $template->assign('ACTIVE_MENU', get_active_menu($page['page'])); 298 299 if (count($page['errors']) != 0)300 {301 $template->assign('errors', $page['errors']);302 }303 304 if (count($page['infos']) != 0)305 {306 $template->assign('infos', $page['infos']);307 }308 309 if (count($page['warnings']) != 0)310 {311 $template->assign('warnings', $page['warnings']);312 }313 284 314 285 // +-----------------------------------------------------------------------+ … … 323 294 trigger_action('loc_end_admin'); 324 295 296 include(PHPWG_ROOT_PATH.'include/page_messages.php'); 297 325 298 $template->pparse('admin'); 326 299 -
trunk/include/common.inc.php
r17649 r18463 65 65 'infos' => array(), 66 66 'errors' => array(), 67 'warnings' => array(), 67 68 ); 68 69 $user = array(); -
trunk/include/page_messages.php
r15578 r18463 25 25 if ($template->get_template_vars('page_refresh') === null) 26 26 { 27 foreach (array('errors','infos' ) as $mode)27 foreach (array('errors','infos','warnings') as $mode) 28 28 { 29 29 if (isset($_SESSION['page_'.$mode]))
Note: See TracChangeset
for help on using the changeset viewer.