Changeset 8222 for branches/2.1/include/menubar.inc.php
- Timestamp:
- Dec 22, 2010, 12:12:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/menubar.inc.php
r6715 r8222 42 42 if ( ($block=$menu->get_block('mbLinks')) and !empty($conf['links']) ) 43 43 { 44 $ data = array();44 $block->data = array(); 45 45 foreach ($conf['links'] as $url => $url_data) 46 46 { … … 70 70 ); 71 71 } 72 $ data[] = $tpl_var;72 $block->data[] = $tpl_var; 73 73 } 74 74 } 75 $block->template = 'menubar_links.tpl'; 76 $block->data = $data; 75 if ( !empty($block->data) ) 76 { 77 $block->template = 'menubar_links.tpl'; 78 } 77 79 } 78 80
Note: See TracChangeset
for help on using the changeset viewer.