Not working <search position="after">

Started by MESWEB, October 03, 2015, 02:35:26 PM

Previous topic - Next topic

MESWEB

I make my own mod with installation. But when I want install it there is an error because installation can't find string. Here is my example:
<file name="$sourcedir/Subs.php">
<operation>
<search position="after"><![CDATA[// Generate a random seed and ensure it's stored in settings.]]></search>
<add><![CDATA[// Bla Bla Bla Integration
]]></add>
</operation>
</file>

Why this code can't find simple string:
Quote// Generate a random seed and ensure it's stored in settings.

Kindred

well - probably because the string is not in Subs.php exactly as you have entered it... maybe your spacing is incorrect (spaces and tabs matter in matching strings)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

MESWEB

Thanks for suggestion but there is my fault. I got wrong code in package-info.xml simple bad typo.

Advertisement: