Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
2011.11
-
None
-
Operating System: Mac OS X Lion
PHP Version: 5.3.6
Database and version:
Browser (and version):
Description
Hi guys,
ezini returns the default value in this case :
Copy this code in your pagelayout.tpl (outside a cache-block)
{def $siteaccess_settings_path = concat( 'settings/siteaccess/', $access_type.name )} {debug-log msg=concat( 'SiteURL value for siteaccess ', $access_type.name, ' using ', $siteaccess_settings_path, ' as ini_path parameter in ezini' ) var=ezini( 'SiteSettings', 'SiteURL', 'site.ini', $siteaccess_settings_path )}
This code is supposed to get the 'SiteURL' value of a certain siteaccess but I've noticed that it does not work when TemplateCompile is enabled because you will get the default value which is 'example.com' and come from settings/site.ini.
If you hardcode the ini_path parameter with something like 'settings/siteaccess/ezwebin_site', it will works... even with TemplateCompile...
A beer to whom will resolve this one!
Cheers,
Arnaud