Ignore:
Timestamp:
02/13/09 14:01:03 (11 years ago)
Author:
rvelices
Message:
  • moved check upgrade feed code to admin/include/functions_upgrade.php
  • refactored some code (shorter and somehow faster - but nothing revolutionary)
  • decrease lost space in permalinks.tpl and hard coded column width (was illisible)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/event_tracer/main.inc.php

    r3049 r3136  
    8181  } 
    8282 
    83   function on_pre_trigger_event($event_info) 
    84   { 
    85     @$this->trigger_counts[$event_info['event']]++; 
    86     $this->dump('pre_trigger_event', $event_info); 
    87   } 
    88   function on_post_trigger_event($event_info) 
    89   { 
    90     $this->dump('post_trigger_event', $event_info); 
    91   } 
    92  
    93   function on_trigger_action($event_info) 
    94   { 
    95    @$this->trigger_counts[$event_info['event']]++; 
    96     $this->dump('trigger_action', $event_info); 
    97   } 
    98  
    9983  function on_page_tail() 
    10084  { 
     
    130114  } 
    131115 
    132   function dump($event, $event_info) 
     116  function on_trigger($event_info) 
    133117  { 
     118    if ($event_info['type']!='post_event') 
     119      @$this->trigger_counts[$event_info['event']]++; 
     120 
    134121    foreach( $this->my_config['filters'] as $filter) 
    135122    { 
     
    144131        else 
    145132          $s = ''; 
    146         pwg_debug($event.' "'.$event_info['event'].'" '.($this->trigger_counts[$event_info['event']]).' calls '.($s) ); 
     133        pwg_debug($event_info['type'].' "'.$event_info['event'].'" '.($this->trigger_counts[$event_info['event']]).' calls '.($s) ); 
    147134        break; 
    148135      } 
     
    166153 
    167154add_event_handler('get_admin_plugin_menu_links', array(&$obj, 'plugin_admin_menu') ); 
    168 add_event_handler('pre_trigger_event', array(&$obj, 'on_pre_trigger_event') ); 
    169 add_event_handler('post_trigger_event', array(&$obj, 'on_post_trigger_event') ); 
    170155add_event_handler('loc_begin_page_tail', array(&$obj, 'on_page_tail') ); 
    171 add_event_handler('trigger_action', array(&$obj, 'on_trigger_action') ); 
     156add_event_handler('trigger', array(&$obj, 'on_trigger') ); 
    172157set_plugin_data($plugin['id'], $obj); 
    173158?> 
Note: See TracChangeset for help on using the changeset viewer.