Publisher sentenced to two years in prison