I have some trouble using setting() function - the setting() returns nothing in an included file.
I set the setting() inside a function - could this be the culprit?
_inti.php file, that is auto-included:
function calendar($source){
setting('calendar', $source->id);
}
include_once('./_head.php');
_head.php file, that returns nothing for this setting:
<?=setting('calendar')?>
Is there an option to make it "global" from inside the function?
API functions are turned on, and those that are set "statically" (not within function) and works fine.