Changeset 6066 for qesdi/joomla


Ignore:
Timestamp:
30/11/09 09:43:52 (10 years ago)
Author:
pnorton
Message:

Modified the simplecaddy plugin so that i handles '&' caracters in the product code correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qesdi/joomla/trunk/custom_extensions/plg_simplecaddy17_qesdi_mod/simplecaddy.php

    r5908 r6066  
    2929        preg_match_all( $regex, $row->text, $matches, PREG_SET_ORDER ); 
    3030        foreach ($matches as $elm) { 
     31 
    3132                $line=str_replace(" ", " ", $elm[2]); 
    3233                $line=str_replace(" ", "&", $line); 
     34                $line=str_replace("&", "&", $line); 
     35         
    3336                parse_str( $line, $parms ); 
     37                $parms['code'] = substr($line,5); 
    3438                $html=getSC($parms, $pluginParams, 1); 
     39 
    3540                $row->text = preg_replace($regex, $html, $row->text, 1); 
    3641        } 
Note: See TracChangeset for help on using the changeset viewer.