Changeset 9351 for extensions/AdditionalPages/main.inc.php
- Timestamp:
- Feb 22, 2011, 4:38:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdditionalPages/main.inc.php
r9350 r9351 62 62 function register_ap_menubar_blocks($menu_ref_arr) 63 63 { 64 global $conf, $user; 65 64 66 $menu = & $menu_ref_arr[0]; 65 67 if ($menu->get_id() != 'menubar') return; 66 $menu->register_block( new RegisteredBlock( 'mbAdditionalPages', 'Additional Pages', 'P@t')); 68 69 $conf['AP']['block_title'] = isset($conf['AP']['languages'][$user['language']]) ? 70 $conf['AP']['languages'][$user['language']] : @$conf['AP']['languages']['default']; 71 72 if (empty($conf['AP']['block_title'])) 73 $conf['AP']['block_title'] = 'Additional Pages'; 74 75 $menu->register_block( new RegisteredBlock( 'mbAdditionalPages', $conf['AP']['block_title'], 'Additional Pages')); 67 76 } 68 77 … … 96 105 if (!empty($data)) 97 106 { 98 $title = isset($conf['AP']['languages'][$user['language']]) ?99 $conf['AP']['languages'][$user['language']] :100 @$conf['AP']['languages']['default'];101 102 107 $template->set_template_dir(AP_PATH.'template/'); 103 $block->set_title($ title);108 $block->set_title($conf['AP']['block_title']); 104 109 $block->template = 'menubar_additional_pages.tpl'; 105 110 $block->data = $data;
Note: See TracChangeset
for help on using the changeset viewer.