Changeset 20598


Ignore:
Timestamp:
02/07/13 06:41:11 (7 years ago)
Author:
rvelices
Message:

fix event_tracer callback names when using closures (anonymous functions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_tracer/main.inc.php

    r17521 r20598  
    104104            } 
    105105            else 
    106              $out .= $handler['function']; 
     106            { 
     107              if ( !is_scalar($handler['function']) && get_class($handler['function'])=='Closure') 
     108                $out .= 'Closure'; 
     109              else 
     110                $out .= $handler['function']; 
     111            } 
    107112            $out .= "\n"; 
    108113          } 
Note: See TracChangeset for help on using the changeset viewer.