Changeset 13074 for trunk/include/page_header.php
- Timestamp:
- Feb 9, 2012, 10:11:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/page_header.php
r12922 r13074 67 67 68 68 // No referencing is required 69 if ( !$conf['meta_ref'] ) 69 if ( !$conf['meta_ref'] ) 70 70 { 71 71 $page['meta_robots']['noindex'] = 1; … … 82 82 } 83 83 if ( !isset($page['meta_robots']['noindex']) ) 84 { 85 $template->assign('meta_ref',1); 84 { 85 $template->assign('meta_ref',1); 86 86 } 87 87 … … 98 98 )); 99 99 } 100 else 101 {// messages only if no redirection 102 foreach (array('errors','infos') as $mode) 103 { 104 if (isset($_SESSION['page_'.$mode])) 105 { 106 $page[$mode] = array_merge($page[$mode], $_SESSION['page_'.$mode]); 107 unset($_SESSION['page_'.$mode]); 108 } 100 109 101 102 // messages 103 foreach (array('errors','infos') as $mode) 104 { 105 if (isset($_SESSION['page_'.$mode])) 106 { 107 $page[$mode] = array_merge($page[$mode], $_SESSION['page_'.$mode]); 108 unset($_SESSION['page_'.$mode]); 109 } 110 111 if (count($page[$mode]) != 0) 112 { 113 $template->assign($mode, $page[$mode]); 110 if (count($page[$mode]) != 0) 111 { 112 $template->assign($mode, $page[$mode]); 113 } 114 114 } 115 115 } 116 117 116 trigger_action('loc_end_page_header'); 118 117
Note: See TracChangeset
for help on using the changeset viewer.