SMF Ads Support Forum

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

Title: Bug in installation.xml
Post by: stormvibrant 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.