Skip to the content
Documentation

in 3.9

No ratings yet

Now, you can use ezini_hasvariable() like
For example:

ezini_hasvariable( 'URL', 'URL', 'my.site' )
=
ezini( 'URL', 'URL', 'my.ini',,,'hasVariable' )
ezini( <BlockName>, <SettingName>, <FileName>,
       <IniPath>, <Should we put implementation to cache file?: 'inCache' or true()>,
       <Should we check for existence: 'hasVariable' or true()> )

When compilation of tpl is enabled:

ezini( 'URL', 'URL', 'my.ini',, 'inCache')
=
ezini( 'URL', 'URL', 'my.ini',, true())

=> if ini variable doesn't exist warnings will not be shown
http://ez.no/bugs/view/7449