Fixing deprecated $preview parameter see BT#7110
Minor - format code.