Changeset 27125


Ignore:
Timestamp:
Feb 1, 2014, 2:24:34 PM (10 years ago)
Author:
mistic100
Message:

compatibility with last Colored Tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/trunk/modules/Tags/main.inc.php

    r19067 r27125  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $conf, $template, $pwg_loaded_plugins;
     5global $conf, $template, $pwg_loaded_plugins, $tags, $page;;
    66
    77function counter_compare($a, $b)
     
    2727if (isset($pwg_loaded_plugins['typetags']))
    2828{
    29   $typetags = true;
    30   $template->assign('display_mode', $datas[0]);
    3129  if ($conf['TypeTags']['show_all'])
    3230  {
     
    152150}
    153151
    154 if (isset($typetags))
     152if (isset($pwg_loaded_plugins['typetags']))
    155153{
     154  $page['display_mode'] = $datas[0];
    156155  typetags_tags();
     156
    157157  if ($conf['TypeTags']['show_all'])
    158158  {
    159     add_event_handler('render_tag_name', 'typetags_render', 0);
     159    add_event_handler('render_tag_name', 'typetags_render', 0, 2);
    160160  }
    161161}
Note: See TracChangeset for help on using the changeset viewer.