Bug in MOD xml parser?

Started by DiLDoG, April 11, 2006, 01:22:24 PM

Previous topic - Next topic

DiLDoG

Hi, I've got the following operation in my install.xml:
<file name="$languagedir/Modifications.dutch.php">
<operation>
<search position="before"><![CDATA[
?>
]]></search>

<add><![CDATA[
$txt['nlriders_profile'] = 'NL-Riders Profiel';
$txt['nlriders_gallery'] = 'Foto Album';
$txt['nlriders_configurl'] = 'URL naar de nlriders pagina';

]]></add>
</operation>
</file>


But for some reason it results in the following:
<?php
// Version: 1.0; Modifications

?>


$txt['nlriders_profile'] = 'NL-Riders Profiel';
$txt['nlriders_gallery'] = 'Foto Album';
$txt['nlriders_configurl'] = 'URL naar de nlriders pagina';


Am I doing something wrong or is this a bug in the installer engine??

Thantos

Actually its a logic error in your instruction.

You are saying "Search for ?> which will be BEFORE the code I insert"

What you want is <search position="after"><![CDATA[

Or you could save yourself some trouble and use <search position="end"></search>

Harzem

DiLDoG, it was difficult for me also to understand this concept :)

<search position="before"><![CDATA[
?>
]]></search>

means that put your new code "after" this code :)

You can read this: http://www.simplemachines.org/community/index.php?topic=75888.msg530494#msg530494

Advertisement: