Forums / Developer / Siteaccess in extension. Settings loaded twice.

Siteaccess in extension. Settings loaded twice.

Author Message

Xavier Serna

Friday 04 May 2007 2:06:17 am

Hi all,

I'm having an strange situation in an eZ 3.8.6.
I have all the settings and siteaccess definitions inside an extension, and thus, in the main site.ini override only that extension is activated.
Apparently it works fine, but if I inspect the source code, I can see that the css file for the siteaccess choosen is included twice. ¿?

I also inspected the contents of

$GLOBALS["eZINIOverrideDirList"]

and get that it contains:

Array
(
    [0] => Array
        (
            [0] => extension/my_extension/settings/siteaccess/my_siteaccess
            [1] => 1
            [2] => 
        )

    [1] => Array
        (
            [0] => extension/additional_extension1/settings
            [1] => 1
            [2] => 
        )

    [2] => Array
        (
            [0] => extension/additional_extension2/settings
            [1] => 1
            [2] => 
        )

    [3] => Array
        (
            [0] => extension/my_extension/settings/siteaccess/my_siteaccess
            [1] => 1
            [2] => 
        )

    [4] => Array
        (
            [0] => extension/my_extension/settings
            [1] => 1
            [2] => 
        )

    [5] => Array
        (
            [0] => override
            [1] => 
            [2] => 
        )

)

Notice that "extension/my_extension/settings/siteaccess/my_siteaccess" appears twice in the list!!!

Anybody have some idea that what's happening? I'm doing something wrong?

thanks for your help!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205