Those two are the exact same thing.
The dodgy misquote, in a modern context, casts religion by analogy as a social blight, entirely negative, with an implied solution of organised state violence. The original casts religion as something positive that makes life bearable for the masses in a fallen world of bureaucracy and exploitation. By implication, religiosity is humanity's second best option. Best option being Revolution. Of course. This is Marx.