r2458 - fixed missing global in getFilePreviewCode()