Found a bug when trying to change the post background item settings...
In the code it gives at the validation:
PHP Code:
function validateSettings($settings)
{
if ($settings['postbg']
&& !(count($postbgs) > 0)
&& !$settings['postbg_url'])
{
print_stop_message('kbank_itemtype_customize_postdisplay_postbg_invalid');
}
}
In this code $postbgs isn't defined, and is not definable by using global either. Fixed this by using this code:
PHP Code:
function validateSettings($settings)
{
if ($settings['postbg']
&& !(strlen($settings['postbg_list']) > 0)
&& !$settings['postbg_url'])
{
print_stop_message('kbank_itemtype_customize_postdisplay_postbg_invalid');
}
}
Without this fix it will give a "No items in list" error when choosing the "no url allowed" option.
I'm sure there's a better way to fix this but this was my fast way around.