this code is the code for the file extension binding:
$WAFV_Errors .= WAValidateFE(((isset($_FILES["newsImage"]))? preg_replace('/^.*\./', '', $_FILES["newsImage"]["name"]) :"") . "",".gif, .jpg, .jpeg, .png",false,3);
this code is for the file name (including extension) binding.
$WAFV_Errors .= WAValidateFE(((isset($_FILES["newsImage"]))?$_FILES["newsImage"]["name"]:"") . "",".gif, .jpg, .jpeg, .png",false,3);
the file extensions validation expects to be passed the full file name (the second code example).