Changeset 3612 for branches/2.0/plugins/event_tracer/main.inc.php
- Timestamp:
- Jul 16, 2009, 9:26:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/plugins/event_tracer/main.inc.php
r3274 r3612 24 24 /* 25 25 Plugin Name: Event tracer 26 Version: 2.0. 226 Version: 2.0.3 27 27 Description: For developers. Shows all calls to trigger_event. 28 28 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=288 … … 66 66 { 67 67 $this->my_config['filters'] = array( '.*' ); 68 $this->my_config['show_args'] = false;69 68 $this->my_config['show_registered'] = true; 70 69 $this->save_config(); … … 83 82 function on_page_tail() 84 83 { 85 if (1 || @$this->my_config['show_registered']) 84 global $debug; 85 if (@$this->my_config['show_registered']) 86 86 { 87 global $ debug, $pwg_event_handlers;87 global $pwg_event_handlers; 88 88 $out = ''; 89 89 foreach ($pwg_event_handlers as $event => $prio_array) … … 112 112 $debug .= '<pre>'.$out.'</pre>'; 113 113 } 114 if (@$this->my_config['show_included_files']) 115 { 116 $debug .= "<pre><em>Included files</em>\n".var_export( get_included_files(), true ).'</pre>'; 117 } 114 118 } 115 119 … … 123 127 if ( preg_match( '/'.$filter.'/', $event_info['event'] ) ) 124 128 { 125 if ( $this->my_config['show_args'])129 if (@$this->my_config['show_args']) 126 130 { 127 131 $s = '<pre>';
Note: See TracChangeset
for help on using the changeset viewer.