mmorning, im a php man so I cant understand why this is throwing an error:
function display_message( bool, msg, remove_wrap = false ) {
if( bool === true ) {
error = get_msg( msg, remove_wrap );
}else{
error = get_error_msg( msg, remove_wrap );
}
$.fancybox( error, { 'autoDimensions' : false, 'width' : 450, 'height' : 'auto', 'transitionIn' : 'none', 'transitionOut' : 'none' });
}
the culprit being 'remove_wrap = false' from the function.
can anyone tell me what i should be writing here. regards, phil