code enhancement to support zencart 1.5.4 and 1.6.0
add missing global $sniffer;