SMF Ads Support Forum

Support => Bugs => Topic started by: jack40k on November 16, 2008, 05:40:33 am

Title: Bug in installation.xml
Post by: jack40k on November 16, 2008, 05:40:33 am
------------------------------------------------------------------------------------------------

<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="replace"><![CDATA[         'pm' => array(]]>
</search>
<add><![CDATA[         'ad_manage' => array(
            'ad_manageperm' => false,
         ),
         'pm' => array(]]>
</add>
</operation>
</file>


------------------------------------------------------------------------------------------------

Now you see how is tells you to find the line of code: 'pm' => array(]]>. Well there's no such thing in ManagePermissions.php. It's actually: 'pm' => array(

When you find that you need to replace it with: 'ad_manage' => array(
            'ad_manageperm' => false,
         ),
         'pm' => array(

The "]]>" at the end of array never existed.

Hope this helps.
Title: Re: Bug in installation.xml
Post by: ccbtimewiz on November 16, 2008, 06:10:03 pm
The ]]> is not search code, it's XML parse code.