Development

Changeset 13723

You must first sign up to be able to contribute.

Changeset 13723

Show
Ignore:
Timestamp:
12/04/08 14:57:24 (1 year ago)
Author:
Kris.Wallsmith
Message:

[1.2] made queries in the propel debug toolbar copy-and-pasteable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php

    r13511 r13723  
    9191      else if (preg_match('/Binding (.*) at position (.+?) w\//', $log['message'], $match)) 
    9292      { 
    93         $bindings[$i - 1][] = $match[2].' = '.$match[1]; 
     93        $bindings[$i - 1][$match[2]] = $match[1]; 
    9494      } 
    9595    } 
     
    9999      if (count($bindings[$i])) 
    100100      { 
    101         $logs[$i] .= sprintf(' (%s)', implode(', ', $bindings[$i])); 
     101        foreach ($bindings[$i] as $search => $replace) 
     102        { 
     103          $logs[$i] = str_replace($search, $replace, $logs[$i]); 
     104        } 
    102105      } 
    103106    } 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.