Post by abda11ah » Wed May 13, 2015 5:30 pm

Hi again,

I I'm trying to add a string after a part of PHP code by:

Code: Select all

<operation>
			<search regex="false"><![CDATA[date_modified = NOW() WHERE product_id = '" . (int)$product_id . "'");]]></search>
			<add position="After"><![CDATA[if (isset($data['image'])) {
                        $this->editImages($data['image'], $product_id);
                }/*]]></add>
        </operation>
But i obtain a replacement instead of a paste After :
date_modified = NOW() WHERE product_id =...
is replaced by
if (isset($data['image'])) {...
is it a bug or i missed something ?

Newbie

Posts

Joined
Wed Mar 28, 2012 3:11 pm

Post by abda11ah » Wed May 13, 2015 7:13 pm

oops, just solved.

Before and After keywords had to be in lowercase

Newbie

Posts

Joined
Wed Mar 28, 2012 3:11 pm
Who is online

Users browsing this forum: mandom and 41 guests