includes/functions.php
changeset 19 5d003b6c9e89
parent 16 64e0d3d4cf14
child 21 663fcf528726
equal deleted inserted replaced
18:edfc24408769 19:5d003b6c9e89
   904  
   904  
   905 function enano_debug_print_backtrace($return = false)
   905 function enano_debug_print_backtrace($return = false)
   906 {
   906 {
   907   ob_start();
   907   ob_start();
   908   echo '<pre>';
   908   echo '<pre>';
   909   debug_print_backtrace();
   909   if ( function_exists('debug_print_backtrace') )
       
   910   {
       
   911     debug_print_backtrace();
       
   912   }
       
   913   else
       
   914   {
       
   915     echo '<b>Warning:</b> No debug_print_backtrace() support!';
       
   916   }
   910   echo '</pre>';
   917   echo '</pre>';
   911   $c = ob_get_contents();
   918   $c = ob_get_contents();
   912   ob_end_clean();
   919   ob_end_clean();
   913   if($return) return $c;
   920   if($return) return $c;
   914   else echo $c;
   921   else echo $c;