Changeset 19067
- Timestamp:
- Nov 18, 2012, 12:21:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PWG_Stuffs/trunk/modules/Tags/main.inc.php
r18062 r19067 3 3 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 4 4 5 global $conf, $template ;5 global $conf, $template, $pwg_loaded_plugins; 6 6 7 7 function counter_compare($a, $b) … … 23 23 24 24 $block['TITLE_URL'] = 'tags.php'; 25 26 // hack typetags 27 if (isset($pwg_loaded_plugins['typetags'])) 28 { 29 $typetags = true; 30 $template->assign('display_mode', $datas[0]); 31 if ($conf['TypeTags']['show_all']) 32 { 33 remove_event_handler('render_tag_name', 'typetags_render', 0); 34 } 35 } 25 36 26 37 $tags = get_available_tags(); … … 141 152 } 142 153 154 if (isset($typetags)) 155 { 156 typetags_tags(); 157 if ($conf['TypeTags']['show_all']) 158 { 159 add_event_handler('render_tag_name', 'typetags_render', 0); 160 } 161 } 162 143 163 $template->assign('display_mode', $datas[0]); 144 164
Note: See TracChangeset
for help on using the changeset viewer.